Skip to content

enableField

Updated pdexter 2022-10-22

(Applies to client-side rulesets)

Sets the enablement of a field on the document.

Syntax

ft3.enableField(field-name, state)

Part Description
field-name name of the field on the document
state values: true, false

Example

var ft3 = ntf.scope;

ft3.enableField('establishmentDate', false);

// Disable field if document is closed
var flag = !(ntf.document.status === 'Closed');
ft3.enableField('status', flag);

Note

To enable fields on a parent document in the case that a child document is open, precede the field-name with "parentDoc", eg "parentDoc.lastName".

To enable fields on a child document in the case that a child document is open, precede the field-name with "childDoc", eg "childDoc.lastName".