Set placeholder
Sets a specific placeholder for all the combo boxes that have a certain key.
(function () {
let key = "MyKey";
let placeholderText = "Placeholder";
let doc = Api.GetDocument();
doc.GetAllForms()
.filter(field => field.GetFormType() === "comboBoxForm" && field.GetFormKey() === key)
.forEach(field => field.SetPlaceholderText(placeholderText));
})();
Methods used: GetDocument, GetAllForms, GetFormType, GetFormKey, SetPlaceholderText
Result