FORMS
Dynamic Content in Workflow and Autoresponder Emails
6min
emails are liquid files, so they can include webapp or module list views you can also output fields that were submitted in the form introduction emails are liquid files, so they can include webapp or module list views they can also include liquid filters, logic and loops outputting form fields submitted in the form which triggered the email let's say you have a user fill in a form and you want to send a confirmation email to them, wouldn't it be great to personalise it to them a little? since they've just filled in their name and other information in the form, accessing the form submission information is extremely useful to test, and find the real names of the fields you might need, output all available form submission data in a test email with {{form}} use that to identify form fields that you would like to output and use dot notation to output the ones you need for example, it should be possible to access the name of the user submitting the form with the following {{form properties name}} custom fields can also be accessed here, though their database names will show instead of their user friendly names, so its best to use the content to identify them while testing {{form properties form field 4 1}} outputting webapp and module data in the email visit the related articles below for reference on the liquid tags needed to output this kind of content one extra thing to think about here is, what if i want to dynamically determine which item i should display in the email? outputting a specific webapp item in an email to make sure that the email can access the dynamic id of custom content you want to display, you can create a custom field in the form this would need to be hidden from the user, so you could add the html "hidden" parameter in the form layout (if this is not enough due to css rules, you may also want to wrap it in a \<div> element with style="display none" note the first line of the next example has been left as a generic assign (which should work on a starter site) you could replace the first line of the example with a id from a more dynamic source e g if the form is outputted within a webapp list layout item layout file, you could use this id e g in the form layout {% assign my dynamic webapp id = "98657" %} in the email {% assign my dynamic webapp id = form properties form field 2 1 %} {% include 'webapp' id '1' item ids my dynamic webapp id layout 'portfolio 2' per page '1' sort type 'properties name' sort order 'asc' %} related articles payment confirmation emails docid\ rz6a5mbhymyviiepjqgx1 webapp list layouts product list layouts blog module faqs module slider module testimonials module