SelectListValue
function SelectListValue(sValue: string = null): boolean
Description
Selects the specified value from the combo box list values.
Parameters
- sValue
string
null The combo box list value that will be selected.
Returns
boolean
Try It
var oDocument = Api.GetDocument();
var oComboBoxForm = Api.CreateComboBoxForm({"key": "Personal information", "tip": "Choose your country", "required": true, "placeholder": "Country", "editable": false, "autoFit": false, "items": ["Latvia", "USA", "UK"]});
var oParagraph = oDocument.GetElement(0);
oParagraph.AddElement(oComboBoxForm);
oComboBoxForm.SelectListValue("USA");