getSelectedOption (Client API reference)

Returns the option object or an array of option objects selected in an optionset or multiselectoptionset attribute respectively.

Attribute types supported

optionset, multiselectoptionset

Syntax

formContext.getAttribute(arg).getSelectedOption()

Return Value

Type: Option object for optionset; array of option objects for multiselectoptionset.

Description: Returns the object with text and value properties.

getInitialValue (Client API reference)

getOption (Client API reference)

getOptions (Client API reference)

getText (Client API reference)