Previous Topic: General Functions for All Form ElementsNext Topic: ca_pam_setRequired(_id, isRequired)


ca_pam_disableField(_id, isDisable)

Enables or disables a specified field. When a field is enabled, users can provide input or edit the values. Disabled fields are still visible but do not accept user input.

Input Parameters
_id (string)

Specifies the unique identifier of the field to enable or disable. You can find this under the element properties. See Form Element Properties for more information.

isDisable (boolean)

Specifies whether the field is to be disabled (true) or enabled (false).

Return Value

None.

Example

This example disables the specified checklist field, including all checklist items in it.

ca_pam_disableField('Form.ckListField27', true)