Skip to main content

Show Modal

The Show Modal function is used to display a widget inside a modal dialog within the Zoho Books application. This allows you to present additional content or interactions without navigating the user away from the current page. The modal appears as an overlay while preserving the existing page context.

Commonly used for :
  • Opening embedded widget screens in overlays
  • Collecting form input without navigation
  • Displaying contextual previews
  • Launching secondary processes
  • Maintaining current page context
Sample Code :
REQUEST DETAILS
window.onload = function () {
  ZFAPPS.extension.init().then(function(App) {
  ZFAPPS.showModal({
    url: '/app/modal.html'
  });
})
};

The modal remains open until it is closed manually by the user or programmatically using the Close Modal function.