You are viewing beta documentation for Formie 4.x.
Reference

Notification

A Notification object represents one email notification attached to a form. A form can have more than one notification.

Properties

PropertyDescription
idThe notification ID.
formIdThe form ID this notification belongs to.
templateIdThe email template ID, when one is selected.
pdfTemplateIdThe PDF template ID, when one is selected.
nameThe control panel name for the notification.
handleThe notification handle.
enabledWhether the notification is enabled.
subjectThe email subject.
recipientsThe recipient mode, such as email or conditions.
toThe email address or variable content used for the To recipient.
toConditionsConditional recipient rules for the To recipient.
ccThe email address or variable content used for the Cc recipient.
bccThe email address or variable content used for the Bcc recipient.
replyToThe reply-to email address or variable content.
replyToNameThe reply-to name or variable content.
fromThe sender email address.
fromNameThe sender name.
contentThe raw notification content.
attachFilesWhether user-uploaded files should be attached.
attachPdfWhether a PDF should be attached.
enableConditionsWhether the notification has sending conditions enabled.
conditionsThe conditions used to decide whether the notification should send.

Methods

MethodDescription
getParsedContent()Returns the notification content as rendered HTML.
getToEmail()Resolves the notification’s To recipient for a submission.
getStatusCondition()Returns the status condition for a submission, when applicable.
renderTemplate()Renders notification template content with supplied variables.
getTemplate()Returns the selected email template model, if one is set.
getPdfTemplate()Returns the selected PDF template model, if one is set.
getAssetAttachments()Returns asset attachments for the notification.