Version 1.7 glow.forms
API Quick Reference
JavaScript is required to use the quick reference
Validating HTML Forms. To get started, you'll need to create a Form instance.
Further Info & Examples
Properties
- FAIL
-
Constant for a failing test.
- Type
Description
This indicates that the value in a field fails at least one of the tests associated with it. You can use this when creating custom tests
- PASS
-
Constant for a passed test.
- Type
Description
This indicates that the value in a field passes all the tests associated with it. You can use this when creating custom tests
- SKIP
-
Constant for a skipped test.
- Type
Description
This indicates that there was some unmet condition associated with the applied tests, so they were not run. This state is not considered a fail, and will not affect glow.forms.ValidateResult#errorCount. You can use this when creating custom tests.
Namespaces
- feedback
-
Collection of functions for displaying validation results to the user
- tests
-
Collection of built-in tests that can be added to any form field as a way of validating that field's value.
Classes
- Form
-
Create an object to add tests to.
- ValidateResult
-
The overall result returned by an attempt to validate the current state of the form.