Selects the specified value from the combo box list values.
Name | Type | Description |
sValue | string | The combo box list value that will be selected. |
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();