Previous Topic: ca_pam_setRequired(_id, isRequired)Next Topic: XML Parsing


ca_pam_hideField(_id, isHide)

Shows or hides a specified field. Hidden fields are not visible to the user. The tab order of the form skips hidden fields. Although the hidden field can still hold a value, it is effectively removed from the form.

Input Parameters
_id (string)

Specifies the unique identifier of the field to display or hide.

hide (boolean)

Specifies whether the field is hidden (true) or displayed (false).

Return Value

None.

Example

Consider that a user fills an online application form with birth place details. If the cities listed under 'Birth City' field are only capital cities, then the user can select "Other City". Upon clicking "Other City", the Hidden attribute is set to false and a text field is visible. The user can now enter the city name.

This example hides the specified field.

ca_pam_hideField('Form.Var_0', true)

You can also find this function in the out-of-the-box content in CA Process Automation.

  1. On the Home page, click Browse Out-of-the-Box Content.
  2. Navigate to the User Interaction Forms folder, 02 Show and Hide Form Element: Show and Hide Form Element.