IsEditable
function IsEditable(): boolean
Description
Checks if the combo box text can be edited. If it is not editable, then this form is a dropdown list.
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);
var bEdit = oComboBoxForm.IsEditable();
oParagraph = Api.CreateParagraph();
oParagraph.AddText("The first combo box from this document is editable: " + bEdit);
oDocument.Push(oParagraph);