Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Creating notification hooks ties together form sections, actions, and notification templates.  The notification template in a notification hook can either be a custom notification template included in the form document, or one of the default system notification templates.  The notification will occur when the specified action triggers on the section containing the notification hook in its' class attribute.  When declaring a notification hook to replace a default notification be sure to suppress the default notification hook for that action on the section.  Notification hook syntax:

  • notify-ACTION-RECIPIENTNOTIFICATIONTARGET-RECIPIENT_SECTIONNAMENOTIFICATIONTARGETSECTION-default_template
  • notify-ACTION-RECIPIENTNOTIFICATIONTARGET-RECIPIENT_SECTIONNAMENOTIFICATIONTARGETSECTION-template-CUSTOM_NOTIFICATION_TEMPLATECUSTOMTEMPLATE

An example notification hook, which causes a notification to be sent to the last person to save the "Student" section, when the "Second_Reviewer" section is approved.  The custom template "Second_Approval_Notice" is used for this email.  Note that if this "Second_Reviewer" section is the last section in the workflow, then by default it will send an approval notice to the submitter of the first section.  If we want to suppress this default notice, then "supress-notify-approve" is needed.

...