When building a custom PDF or Word template, there are options that can be added to the end of your placeholders to customize the way your answers will be presented. Keep reading below for a list of these options, and some examples showing how to use them. 

Each of these options should be added to the end of your field name using the formatting below. 

{{fields.Question_Identifier|format_option}}


Text Questions:

Capitalize:

Will capitalize the answer. Ex: "yes" will become "Yes"
Ex: {{fields.Text_Question|capitalize}}
{{fields.Yes_No_Question|capitalize}} 


Decimal / Integer Questions:

Currency:

Will leave 2 spaces after the decimal Ex: 24.2326 will become 24.23
Ex: {{fields.DecimalQuestion|currency}}  

Additional information can be found here.


Image Questions:

Image Size:

Will resize the image to not exceed 100x100 (any numbers can be used here)
Ex: {{fields.SketchQuestion|100x100}}  


Multi-select questions:

Each answer on new line:

Place each answer from the multi-select on a new line instead of on one line separated by commas by using each_answer_on_new_line
Ex: {{fields.SelectQuestion|each_answer_on_new_line}}  

Separator:

If you would like to separate the answers with something other than the default "," you can specify it using the separator method. For instance, the below example will result in the options being separated by a semi-colon.
Ex: {{fields.SelectQuestion|separator: ";"}}   Will result in “Answer1; Answer2; Answer3”


Location questions:

There are many different options for displaying the answers to your location questions. You can view them all here in this help article: PDF/Word Template Location Formatting Options


Date / Time questions:

There are many different options for displaying the answers to your date/time questions. You can view them all here in this help article: PDF/Word Template Date-Time Formatting Options


Repeat Group questions:

For customization of data within a repeat group, please see this help article: Advanced PDF/Word Template Design: For Loops



Note on Chaining Options:
To use more than one option on the same field, separate options with commas. Ex:
{{fields.LocationQuestion|hide_map: true, show_coordinate_info: false}}



If you have any questions or comments please send us a message at support@devicemagic.com.

Did this answer your question?