Marks the specified field as disabled/read-only, if it is not already marked as such. It updates the field only, not the label.

Note: This method is used with the EnableField 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 enabled on a workflow or transition level. It applies only to fields set as enabled with the EnableField method.
Important: Values for disabled fields that use check boxes are not stored in the database.


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


This example marks the Unit Price field as disabled/read-only:

DisableField("Unit Price");