Subforms on Docs

Any subform on your forms can be easily displayed on a Docs output.

A subform submitted within your forms can be displayed on your Docs templates so you can download them your way.

In this article we’ll be showing you

- How to find and display subform on your template

- An example of subform             

How to display subforms

When you download a template of your form that has subform on it, the template will display the markers on it, under Tables and Subforms

subform markers

If you would like it to hide or show the elements depending on whether there was any answers, you can move the markers ${element-??????} and ${/element-??????} either side of the elements.

 

For example:

On this form, if the subform has no answers, it will not display on a download as shown by ‘Start Subform:’ and ‘End Subform:’

Submission

submission none

Download

template none

If the subform has rows filled in, it will display them in between ‘Start Subform:’ and ‘End Subform:’

Submission

submission yes

Download

template yes

An example of a subform

Like most of the Docs features, such as Table, subforms are customisable by moving the markers from the template in a way that suits you.

On this form, the subform has a ‘Description’ ‘First Name’ and ‘Last Name’ elements on it. The submission has 2 rows.

submission yes

 For this example, we’ll put the markers in a table to display them.

marker template

When you upload this template into Array, your subform will download the submission in the way

download of table

Putting ${element-1299699} and ${/element-1299699} just around the markers will cause these to repeat only. If you put them around the whole table, it will repeat everything per row.

Template

all repeated template

Download

all repeated