Skip to main content

On Preview

Triggered when the user initiates a preview action before saving. This event allows verification of data and business rules before final submission.

Commonly used for :
  • Displaying calculated summaries before save
  • Validating mandatory conditions
  • Highlighting potential data issues
  • Showing confirmation previews
  • Simulating final output results
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
   App.instance.on('ON_<MODULE_NAME>_PREVIEW', function () {
   /* Actions */ 
   });
  })
};
Related Modules :