Word templates
Upload a .docx on the form’s page and it becomes a template for that form. Filling it
with a submission produces a .docx, and a PDF if you ask for one.
Placeholders use Device Magic’s syntax, so existing DM templates work unchanged.
Field values
Section titled “Field values”{{fields.site_name}}{{fields.inspection_date}}The name after fields. is the field’s identifier, not its title.
Repeat groups
Section titled “Repeat groups”%for row in fields.LineItems%{{row.item}} {{row.qty}}%endfor%Put %for% in the first cell of a table row and %endfor% in the last, and the table
grows one row per entry.
Filters
Section titled “Filters”| Filter | Does |
|---|---|
currency |
Formats a number as currency |
date_time_format |
Formats a date/time with a pattern you supply |
list |
Joins a multi-value answer into one string |
Filters are applied with a pipe, Liquid-style — for example
{{fields.total | currency}}.
Images and signatures
Section titled “Images and signatures”Reference the field and give it a size in the template:
{{fields.site_photo}} 300x200Generating
Section titled “Generating”Turn on Automatically generate every document on each submission in delivery settings, or generate on demand from a submission.