Live webinar What's new in Sodium: Information Requests, plus Q&A. Thu 19 Nov, 12 noon Information Requests + Q&A, Thu 19 Nov Reserve your place

FormTokens

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
namestring

The form's name

The form's name

submittedAtstring

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" }}

submittedByNamestring

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

submittedByEmailstring

The email address the form was submitted from; blank when unknown

The email address the form was submitted from; blank when unknown

sectionsarray 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

answersobject

Each answered question's answer by its token name; blank for an empty answer. A name the form no longer has
renders blank. Usage: {{ Form.Answers.annual_turnover }}

Each answered question's answer by its token name; blank for an empty answer. A name the form no longer has
renders blank. Usage: {{ Form.Answers.annual_turnover }}

allAnswersstring

Every section's title and a table of its questions and answers, as the Basic layout shows them; an empty
answer reads "No answer". Usage: {{ Form.AllAnswers }}

Every section's title and a table of its questions and answers, as the Basic layout shows them; an empty
answer reads "No answer". Usage: {{ Form.AllAnswers }}

JSON Example

{
  "name": "string",
  "submittedAt": "2024-01-01T00:00:00Z",
  "submittedByName": "string",
  "submittedByEmail": "string",
  "sections": [
    {
      "title": "...",
      "questions": "..."
    }
  ]
}

Contained in Schemas