Available fields
Assessment
The assessment creation date
{inspection.createdAt}The assessment finalised date
{inspection.finalisedOn}The entity title for the assessment
{inspection.entityTitle}The sections inside the assessment are available with the sections tag.
{inspection.sections['34dAqRcWQBqppdpBS'].title}You can also search for a specific field inside the section using the id of the field.
{inspection.sections['34dAqRcWQBqppdpBS'].fields['M4KxHrYdWCZKLvAFB'].value}In case you want to loop through the sections, you can use the following syntax:
{#loopSections}
{title}
{#fields}
{name}
{value}
{/}
{/}Elements
Elements can be used to individually find and display element titles and their values.
{elements['onZfYQ9ED4K7RKrG4'].title}
{elements['onZfYQ9ED4K7RKrG4'].value}Elements can also be looped through using the following syntax:
{#loopElements}
{title}
{#type == "active"}
{value}
{/}
{#type == "header"}
{#children}
{title}
{value}
{/}
{/}
{/}If the type is header, it means that the element has children. You can loop through them using the same syntax.
If the type is active, it means that the element has a value that you can display directly.
Multiple Participants Values
When generating a DOCX report from the assessment green page with multiple participants who have responded, you can access all answers for a specific element using the following syntax:
{#elements['ovtMQZ9gvjfykG4fB'].allParticipantValues}{#.}
{.}{/}{/}This is particularly useful for open-ended questions such as feedback. You can loop through all participant answers, and any feedback they have provided will be included in the DOCX report.
Note: This functionality does not work for single participant PDF generation.
Pictures
You can access pictures taken by participants or within the assessment using the following syntax:
{#elements['gcBeBX5qHA9d8p95L'].pictures.data}
{%.}
{/}This will loop over all available pictures taken by a participant or inside the assessment.
Participants
When the docx module is used for single participants to download their own results,
Indivudual participant details are available under the participant tag. Submitted is the date when the participant submitted their answers.
{participant.title}
{participant.email}
{participant.submitted}The calculation results are available under the calculationResults tag.
{calculationResults['34dAqRcWQBqppdpBS'].title}
{calculationResults['34dAqRcWQBqppdpBS'].value}