ProApp Designer - Release 14.10 (Package 27)

OnChange Event

The OnChange event is triggered whenever the value of a control is changed. It is supported on both simple controls (like text boxes, checkboxes, etc.) and columns within collection controls (such as tables or worksheets).

For collection controls, when the OnChange event is triggered, the eventData object includes both the selectedItem and the columnPropertyName. These allow you to access the value that was changed.

// On value change of control1, access its value and set the value of control2

let control1Value = appStudioWizard.getControlValue(“control1");
if (control1Value) {
let value = control1Value === “Value1" ? “Discoverable” : “Hidden";
appStudioWizard.setControlValue(“control2", value);
}