SetEditable
Sets field editable prop.
Syntax
expression.SetEditable(bEditable);
expression - A variable that represents a ApiComboboxField class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| bEditable | Required | boolean | allow user enter custom text |
Returns
boolean
Example
This example set editable property for combobox field.
- Code
- Result
let doc = Api.GetDocument();
let page = doc.GetPage(0);
let comboboxField = Api.CreateComboboxField([10, 10, 160, 30]);
page.AddObject(comboboxField);
comboboxField.SetEditable(true);
comboboxField.SetValue('Editable is: ' + comboboxField.IsEditable());