Previous Topic: SelectNext Topic: ca_pam_getSelectedOptionValues(_id)


ca_pam_getSelectedOptions(_id)

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

Input Parameters
_id (string)

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

Return Value

This function returns an array of selected options index.

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

Example
ca_pam_getSelectedOptions('Form.VarFillerType')

This example retrieves the index value of the Filler Type that the user chose.