Customizing Email Templates

Formcarry allows you to use your own HTML email templates in your notification emails and auto replys. You can create templates that can grab the data from last submission, and put it inside the email templates, it's a great way for companies to reflect their own brand.

First go to your dashboard -> Your Form -> Form Settings

Custom email templates overview

Under the Mailing Settings, click Custom Email Notification Template then enable template by checking the Use Custom Email Notification Template

Let's say your form has following fields: name, email and attachment

If you want to dynamically put the values of those fields, you have to wrap the field name with double curly brace like: {{fieldName}}

Let's do it for name, email and attachment:

Submitter Name: {{name}} <br/>
Submitter Email: {{email}} <br/>
Submitter Attachment: {{attachment}} <br/>

You can change the example above according to your fields.

Let's paste it as our template and save it:

Saving custom email templates

Let's test it out

First make sure that there's an email in your notification list, you can add emails from the form settings if you haven't add one yet.

Adding notification email template

Then all you have to do is simply, fill out every field and submit your form.

Custom templates working

After you fill out your form you should get an email like above.

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:

Submitter Name: {{name}} <br/>

Submitter Email: {{email}} <br/>

Submitter Attachment: {{attachment}} <br/>

With that, attachment will be only render if it's not empty.

Iterating Fields

Besides accessing your fields directly with curly braces, formcarry also allows you to iterate fields:

    {{key}}: {{value}}

    {{key}}: {{value}}

Please note that only iterables are fields and attachments.


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:

  {{#fields}} <-- open block
  {{/fields}} <-- close block

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.