SelectListValue

SelectListValue(sValue) → { boolean }

Selects the specified value from the combo box list values.

Parameters:

Name Type Description
sValue string

The combo box list value that will be selected.

Returns:

Type
boolean

Example

Copy code
builder.CreateFile("docx");
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");
builder.SaveFile("docx", "SelectListValue.docx");
builder.CloseFile();

Resulting document