logo

Custom Email Templates

If you need really advanced configuration for Self email notifications or Respondent email notifications, formcarry allows you to use directly your email code.
Formcarry uses dynamic tags to replace the values that you use inside your templates.
For example if you want to get the dynamic value from your input named as telephone, you just have to use {{telephone}} and formcarry will replace the tag with the value from the submission.
๐Ÿ’ก
Custom Email Templates only available on Growth and Premium plan.
๐Ÿ’ก
In previews formcarry always uses the last submission you got as example.

Conditional Rendering

Sometimes you may want to show a block of text based on a condition, let's say theย attachmentย field is not required in our form, so it can be empty time to time.
You may want to only include this field if it's not empty, here's how to do it:
html
Submitter Name: {{name}} <br/> {{#email}} Submitter Email: {{email}} <br/> {{/email}} Submitter Attachment: {{attachment}} <br/>
With that, attachment will be only render if it's not empty.

Iterating Fields

You can also iterate among the fields like this:
html
{{#fields}} {{key}}: {{value}} {{/fields}} {{#attachments}} {{key}}: {{value}} {{/attachments}}
๐Ÿ’ก
You can only iterate Fields and Attachments.

Troubleshooting

Our template syntax based on the presupposition that you will use the valid structure, such as every code block that's been opened, has to be closed:
html
{{#fields}} <-- open block {{/fields}} <-- close block
The preview panel wonโ€™t replace tags and warn you if you have a syntax error:
Image without caption
If you don't close the tags, then your template won't work, so theย {{}}ย tags won't replace with values if you experience errors with emails, first check this guide to find out what's wrong with your syntax, if you can't detect what's wrong, contact us via live chat.

Helpful?