A submitted form's answers, for exporting them as a document. Set only for that export; null in every other render.
Every text value is HTML already: the client's answers are encoded (rich text answers are kept, already sanitised),
so templates output them as they are.
Usage in templates: {{ Form.Name }}, {% for section in Form.Sections %}...{% endfor %}
Properties
| Name | Type | Description |
|---|---|---|
| name | string | The form's name |
The form's name | ||
| submittedAt | string | When the client submitted it, UK time. Usage: {{ Form.SubmittedAt | formatDate: "dd MMM yyyy" }} |
When the client submitted it, UK time. Usage: {{ Form.SubmittedAt | formatDate: "dd MMM yyyy" }} | ||
| submittedByName | string | The name of the client contact who submitted it, else their email address; blank when unknown |
The name of the client contact who submitted it, else their email address; blank when unknown | ||
| submittedByEmail | string | The email address the form was submitted from; blank when unknown |
The email address the form was submitted from; blank when unknown | ||
| sections | array of FormSectionTokens | The sections that have answers, in form order, each with its answered questions |
The sections that have answers, in form order, each with its answered questions | ||
| answers | object | Each answered question's answer by its token name; blank for an empty answer. A name the form no longer has |
Each answered question's answer by its token name; blank for an empty answer. A name the form no longer has | ||
| allAnswers | string | Every section's title and a table of its questions and answers, as the Basic layout shows them; an empty |
Every section's title and a table of its questions and answers, as the Basic layout shows them; an empty | ||
JSON Example
{
"name": "string",
"submittedAt": "2024-01-01T00:00:00Z",
"submittedByName": "string",
"submittedByEmail": "string",
"sections": [
{
"title": "...",
"questions": "..."
}
]
}