When a form has a question group with Multiple Answers ticked, such as a toolbox talk sign-on sheet with one row per person, a custom print needs a loop to print every answer. On the Assignar dashboard, the Custom Printing tab gives you the loop placeholders ready to paste into a Word table. You need the Forms permission.
Print a repeating question group as a table on the dashboard
To print every set of answers from a repeating question group as rows of a Word table:
Open the form at Field Data > Forms > Templates and click Custom Printing.
Find the question group. For a group with Multiple Answers, the tab shows three parts:
a start line, for example
{tablerow from=$id8 item=_row}one line per question in the group, for example
{$_row.data.id9}and{$_row.data.id10}an end line,
{/tablerow}.
In Word, make a table with a heading row (for example Name and Signature) and one more row underneath.
In that second row, paste the start line at the beginning of the first cell, the question placeholders in their cells, and the end line at the end of the last cell.
Save the file, upload it on the Custom Printing tab and click Save.
When a result prints, the row repeats once for every set of answers. A signature or photo inside the group uses its image placeholder from the tab, for example {$_row.data.id10|insert_image:100:0}.
Print a list outside a table
{tablerow} only works inside a table row. To repeat something outside a table, such as several photos one after another, use a {foreach} loop instead. The Custom Printing tab gives you the {foreach} line for photo questions that take several photos: see How do I add images to a custom print on the dashboard?. The Site Diary print variables say the same in reverse: "If you are displaying information in a table substitute {foreach from=$} and {/foreach} with {tablerow from=$} and {/tablerow} on the table row."
Print a question inside a question group that doesn't repeat
For a question group without Multiple Answers, there's no loop. Each question inside it has a placeholder that names the group first, for example {$id3.id4}. Paste it like any other placeholder.
Why does my table print only one row or nothing at all?
If a repeating group prints badly in a custom print from the Assignar dashboard, check:
The start and end lines are in the same table row. If
{/tablerow}is in a different row, or outside the table, the loop breaks.The placeholders inside the row start with
_row.data. A placeholder such as{$id9}inside the loop prints nothing; copy{$_row.data.id9}from the tab.The group really has Multiple Answers ticked. Without it there's no
{tablerow}line and the questions use the{$id3.id4}form.The Word row may need to break across pages. In Word, right-click the table, choose Table Properties, and on the Row tab tick Allow row to break across pages.
