isVisible
(Applies to client-side rulesets)
Checks if a field on the document is currently visible.
Syntax
ft3.isVisible(field-name)
Part | Description |
---|---|
field-name | name of the field on the document |
Returns
Boolean value indicating whether the field is visible (true
) or hidden (false
).
Example
var ft3 = ntf.scope;
// Check if the 'phoneNumber' field is visible
var isPhoneNumberVisible = ft3.isVisible('phoneNumber');
console.log('Phone Number Visible:', isPhoneNumberVisible);
// Check and log the visibility status of the 'emailField' field
var isEmailFieldVisible = ft3.isVisible('emailField');
console.log('Email Field Visible:', isEmailFieldVisible);
Note
To check the visibility status of fields on a parent document when a child document is open, precede the field-name with parentDoc
, e.g., parentDoc.addressLine1
.
To check the visibility status of fields on a child document when a child document is open, precede the field-name with childDoc
, e.g., childDoc.addressLine1
.