Field Object
Field
objects are the primary mechanism for accessing and manipulating field data and properties. They can be accessed via the Context API.
Field Property | Type | Description |
---|---|---|
|
| Read/write property for getting or setting the field value. The type of the value varies depending upon the field type. The value is an array type for multi-valued field types (e.g. multi select, etc.) or if the field is repeating.
|
|
| If the field must be filled out before submitting. Read/write property. |
|
| If the field is disabled or interactable. Read/write property. |
|
| Allowed options to choose from, if the field specifies them (e.g. dropdown, radio buttons, etc.). Read/write property. |
|
| The field type (e.g. Read-only property. |
|
| The text to display to your user along with the field Read-only property. |
|
| True if this field appears on the loaded form. False if the field is from another form. Read-only property. |
|
| True if this field is one of the special 'hidden' fields that do not appear on a form. False if this field is a regular form field. Read-only property. |
|
| The placeholder text for the field that is shown when the field has no value. Read/write property. |
|
| Dynamically update the styles of a form field. Style API Reference |
|
| Method used to set the error of a field. The error may be passed as text or as an object. An error with the shape |
|
| Returns true if the field equals any of the values passed. A value may be a string or another Field. |
|
| Returns true if the field does not equal any of the values passed. A value may be a string or another Field. |
|
| Returns true if the field is greater than any of the values passed. A value may be a string or another Field. |
|
| Returns true if the field is greater than or equal to any of the values passed. A value may be a string or another Field. |
|
| Returns true if the field is less than any of the values passed. A value may be a string or another Field. |
|
| Returns true if the field is less than or equal to any of the values passed. A value may be a string or another Field. |
|
| Returns true if the field contains a value that was set by the user or by logic. |
|
| Returns true if the field does not contains a value, i.e. the field was not set by the user or by logic. |
|
| Returns true if the field is true or truthy. |
|
| Returns true if the field is true or falsy. |
|
| Returns true if the field text contains the text of any of the values passed. The text must match on upper/lower case exactly. A value may be a string or another Field. |
|
| Returns true if the field text does not contain the text of any of the values passed. The text must match on upper/lower case exactly. A value may be a string or another Field. |
|
| Returns true if the field text contains the text of any of the values passed. The text comparison ignores upper/lower case differences and will match on different cases. A value may be a string or another Field. |
|
| Returns true if the field text does not contain the text of any of the values passed. The text comparison ignores upper/lower case differences and will match on different cases. A value may be a string or another Field. |
|
| Returns true if the field text starts with the text of any of the values passed. The text must match on upper/lower case exactly. A value may be a string or another Field. |
|
| Returns true if the field text does not start with the text of any of the values passed. The text must match on upper/lower case exactly. A value may be a string or another Field. |
|
| Returns true if the field text ends with the text of any of the values passed. The text must match on upper/lower case exactly. A value may be a string or another Field. |
|
| Returns true if the field text does not end with the text of any of the values passed. The text must match on upper/lower case exactly. A value may be a string or another Field. |
|
| Returns true if the field value is a number. |
|
| Returns true if the field value is text and not a number. |
|
| Used for multi-valued fields. Returns true if any of the field's values exactly equal the text of any of the values passed as parameters. A value may be a string or another Field. |
|
| Used for multi-valued fields. Returns true if none of the field's values exactly equal the text of any of the values passed as parameters. A value may be a string or another Field. |
Last updated