ProApp Designer - Release 14.10 (Package 27)

OnSubmit Event

The OnSubmit event is triggered after the Submit button is clicked within a flyout. This event is supported exclusively for flyout.

// accessing form values in the flyout & saving them

let price = appStudioWizard.getControlValue(“price”);
let date = appStudioWizard.getControlValue(“purchased_on”);
let managedBy = appStudioWizard.getControlValue(“managed_by_id”);

// calling a server method to save the data. Refer to 2.7 Examples on how to call server method.

if (onSuccess) {
appStudioWizard.showSuccessMessage(“Item saved successfully”);
} else {
appStudioWizard.showErrorMessage(“Failed to save the Item.”);
}