Previous Topic: ca_pam_getSelectedOptions(_id)Next Topic: ca_pam_selectOption(_id, name, value, isSelect)


ca_pam_getSelectedOptionValues(_id)

Returns the value of the currently selected option in a Select field.

Input Parameters
_id (string)

Specifies the unique identifier of the field for which to retrieve the option value.

Return Value

This function returns an array of selected option value.

In the case of a single Select drop-down list, the selected option value can be retrieved by accessing the first element of the array.

Example
alert(ca_pam_getSelectedOptionValues('Form.VarFillerType')[0])

This example returns the option value number or text string for the Filler Type that the user chose.

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, 06 Populate Dropdown DB: Populate Dropdown from DB.