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


ca_pam_selectOptionByIndex(_id, index, isSelect)

Selects or clears an option in a Select field based on the index.

Input Parameters
_id (string)

Specifies the unique identifier of the select field to select or clear.

index (integer)

Specifies the fixed identifier for an option in the field.

isSelect (boolean)

Specifies whether the Select field option is selected (true) or the option is cleared (false).

Return Value

None.

Examples
ca_pam_selectOptionByIndex('Form.VarFillerType', 2, true)

This example sets the current choice of Filler Type to the value at index position 2.

Another example:

ca_pam_selectOptionByIndex('Form.VarFillerType', 2, false)

When Filler Type is already set to Water, this function clears the Filler Type field.