Check if control is required or not.
var ctrl = ix.api.dom.getControl("<ELEMENT-GUID>");
console.log(ctrl.required);
Set required to control.
var ctrl = ix.api.dom.getControl("<ELEMENT-GUID>");
ctrl.required = true;
Verifies the validity of the control.
var validityResult = await ix.api.dom.getControl("<GUID>").checkValidity();
// example of `validityResult` - field is required, but was not filled
ValidationInfo {
valStatus: false,
valMessage: 'Please make a selection',
valType: 'required'
}
Marks an element as selected and updates the value in the input field.
The ID of the entry to be marked as selected.
Optional
settings: { Optional parameter to determine if the onchange event should be triggered.
Optional
triggervar ctrl = ix.api.dom.getControl("<ELEMENT-GUID>");
ctrl.setValue("<DATA-ITEM-KEY>");
Represents a sortable list control.
This control provides a user-friendly interface for manipulating the order of items in a list and saving the selected item's value to a data field.