SetText
function SetText(sText: string = null): boolean
Description
Sets the text to the current combo box. Available only for editable combo box forms.*
Parameters
- sText
string
null The combo box text.
Returns
boolean
Try It
var oDocument = Api.GetDocument();
var oComboBoxForm = Api.CreateComboBoxForm({"key": "Personal information", "tip": "Choose your country", "required": true, "placeholder": "Country", "editable": true, "autoFit": false, "items": ["Latvia", "USA", "UK"]});
var oParagraph = oDocument.GetElement(0);
oParagraph.AddElement(oComboBoxForm);
oComboBoxForm.SetText("France");