Documentation

setValue

selects an item in the option list

void setValue(string| number value);

Parameters

valuestring| numberID of an option to select

See also

Example

//master is a control with a popup list of options
var suggest = master.getPopup();
master.setValue(2);

Details

The method doesn't set value for the master control (text, combo, richselect, multiselect), it selects an option in the suggest list only.

To set the value of the master control, apply the the setValue method to it.

Back to top