Custom Form Window Functions

Describes the functions that handles the custom form's user experience

This function closes the custom web form's window:

window.pepperiApp.onClose();

This function closes the custom web form's window AND cancels the workflow = returns the status to the previous one:

window.pepperiApp.onCancel();

In case you are using the workflow object (deprecated) you can use the following function to close the form and save the changes applied to the workflow object:

window.pepperiApp.onSaveAndClose();