Extends
- FieldTest
Methods
test(field_data, test_params) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
field_data |
object | |
test_params |
object |
- Source:
Returns:
- true if the test passes
- Type
- boolean
Some applications use form fields that contain some type, e.g. boolean, structure, etc. Some application may check that a field contains a type and the application will provide code to see if it conforms to a known type.
| Name | Type | Description |
|---|---|---|
field_data |
object | |
test_params |
object |