Using Templating to Customize Notifications & Confirmation Emails
Templating lets you personalize notification and confirmation messages by adding bracketed templates that are dynamically replaced with data and metadata specific to that entry. You could also think of templating as merge tags.
Jump to...
How it Works |
Templates consist of two parts: the template and the parameter. In the example below, Here's a template you might add to your confirmation message: Thanks for filling out my form, {entry:Field5}!
When someone completes your form, the bracketed template in the confirmation message is replaced with their entry to Field 5—in this case, the field where they entered their first name: Thanks for filling out my form, Beyoncé!
Null or Blank ValuesIf there's no data to replace a template with—for example, if someone leaves a field blank—we'll just replace the bracketed template with a blank space. |
Where You Can Use Templates |
Templating requires an entry to be created before you can pull data about that entry into other areas. So you can't use templating within the form itself, but instead you can use templating in several places that you or respondents see after submitting an entry to your form. The following areas support templating:
* We suggest only using the {entry:EntryId} template in redirect URLs. You may also use any of the other templates listed below, but we advise against it since we don’t provide a way to URL encode the URL. This means if you have an unacceptable character (non-ascii or control character like a slash) in your template output, the URL will break. In other words, depending on what characters the person filling out your form enters into their reponse, there's a chance that it might break the redirect URL. |
Data Sources & Formatting Guide | |||||||||||||||||||||||||
You can pull information into templates from lots of different data sources—answers to fields in your form, entry metadata (information about the person's entry), form metadata (information about your form), or details about someone's payment.
|
Reformatting Dates & Times | ||||||||||||||||||||||||||||||||||||||||||||
You can add an extra piece to your template to reformat dates and times to be clearer and more pleasant to look at. For example, instead of displaying the answer to a Time field as 20:00:00 (the default format), you can display the time as 8:00 PM instead. You can control the format of the date and time outputs from the following data sources: Default Outputs
If you don't add any special formatting, this is how date & time outputs will look.
Syntax for Reformatting Dates & Times
To change the format of a date or time output, you can use the following syntax: {entry:parameter|date_format:"format string"}
Example Date & Time Templates
Here are some popular examples of date and time templates you can use:
|