Skip to content

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.

{{fields.site_name}}
{{fields.inspection_date}}

The name after fields. is the field’s identifier, not its title.

%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.

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}}.

Reference the field and give it a size in the template:

{{fields.site_photo}} 300x200

Turn on Automatically generate every document on each submission in delivery settings, or generate on demand from a submission.