isEnabled
Updated pdexter 2023-12-15
Checks the enablement state of a field on the document.
(client-side function)
Syntax
ft3.isEnabled(field-name)
Part | Description |
---|---|
field-name | name of the field on the document |
Returns
Boolean value indicating whether the field is enabled (true
) or disabled (false
).
Example
var ft3 = ntf.scope;
// Check if the 'establishmentDate' field is enabled
var isEstablishmentDateEnabled = ft3.isEnabled('establishmentDate');
ntf.logger.info('Establishment Date Enabled:', isEstablishmentDateEnabled);
// Check and log the enablement status of the 'status' field
var isStatusEnabled = ft3.isEnabled('status');
ntf.logger.info('Status Field Enabled:', isStatusEnabled);
Note
To check the enablement status of fields on a parent document in the case that a child document is open, precede the field-name with parentDoc
, e.g., parentDoc.lastName
.
To check the enablement status of fields on a child document in the case that a child document is open, precede the field-name with childDoc
, e.g., childDoc.lastName
.