SubmitEmail - smbc-digital/form-builder GitHub Wiki
SubmitAndEmail submits a form where the only required action is to send an email
The syntax is:
- BehaviourType: "SubmitAndEmail"
- conditions: List
Element labels displayed within the email can be modified using the 'SummaryLabel' property.
The below behaviour submits a form to
"Behaviours": [
{
"conditions": [],
"behaviourType": "SubmitAndEmail",
"pageSlug": "success"
}
]
The email to and subject is set up in the emailconfigutation.[environment].json in the email-config folder in the dsl folder. You can attach a PDF of the answers as well if you set attachPdf
to true
[
{
"formName": [ "form-name-1", "form-name-2" ],
"recipient": [ "emailaddress1@domain", "emailaddress2@domain"],
"sender": "Set to [email protected] by default"
"subject": "Subject",
"body": "Optional, if left empty the body of the email will be populated by the form answers",
"attachPdf": true
}
]