mandateField
Updated pdexter 2022-10-22
Makes a field on the document mandatory or not mandatory. When mandatory, the field must have a non-blank value for the document to be saved.
(client-side function)
Syntax
ft3.mandateField( field-name, state)
Part | Description |
---|---|
field-name | name of the field on the document |
state | whether to make the field mandatory, values true, false |
Example
ft3.mandateField('status', true);
ft3.mandateField('widgetColor', false);
Note
To mandate fields on a parent document in the case that a child document is open, precede the field-name with "parentDoc", eg "parentDoc.lastName".
To mandate fields on a child document in the case that a child document is open, precede the field-name with "childDoc", eg "childDoc.lastName".