Previous Topic: ca_pam_disableField(_id, isDisable)Next Topic: ca_pam_hideField(_id, isHide)


ca_pam_setRequired(_id, isRequired)

Sets a specified field as a required or an optional field based on the 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.

isRequired (boolean)

Specifies whether the field is to be made a required (true) or an optional field (false).

Return Value

None.

Example

This example sets a field as a required field in an Interaction Request Form, or a Start Request Form, or a custom operator.

ca_pam_setRequired('Form.ckListField27', true)