SetListValues
function SetListValues(aListString: string[] = null): boolean
Description
Sets the list values to the current combo box.
Parameters
- aListString
string[]
null The combo box list values.
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});
var oParagraph = oDocument.GetElement(0);
oParagraph.AddElement(oComboBoxForm);
oComboBoxForm.SetListValues(["Latvia", "USA", "UK"]);