Client notifications

When forms4health is iframed into another application it will raise notification events to the parent window via postMessage. By listening to these events you can navigate away/close any modals after the user has finished with the form.

The following messages are available:

  • form-discarded - Raised when the user clicks the discard button
  • form-closed - Raised when the user clicks the close button
  • form-draft-saved - Raised when the user clicks the save draft button
  • form-submitted - Raised when the user clicks the submit button
  • form-keep-alive - From 7.5.0 this is raised every 5 minutes if there has been any user interaction on the form

Related Articles