EnableField

Marks the specified field as enabled (that is, not disabled), if it is not already marked as such. It updates the field only, not the label.

Note: This method is used with the DisableField method to dynamically change the disabled or enabled state of a non-required field on a form. This method does not apply to fields originally set as disabled on a workflow or transition level. It applies only to fields set as disabled with the DisableField method.

Parameters

Name Type Description
fieldName String The name of the field.
bShowIfHidden (optional) Boolean Show the field and the label if they are currently hidden. The default value is true.

Return Value

Result Value
(none)  

Examples

This example marks the Unit Price field as enabled:

EnableField("Unit Price");

Comments

(none)