Skip to main content

betaThis is a new capability. Help us improve it and give your feedback on Slack.

form-definition-schema

Form Definition Schema Type

object (Form Definition Schema)

Form Definition Schema Properties

PropertyTypeRequiredNullableDefined by
enginestringOptionalcannot be nullForm Definition Schema
schemaNot specifiedOptionalcannot be nullForm Definition Schema
namestringOptionalcannot be nullForm Definition Schema
feedbackobjectOptionalcannot be nullForm Definition Schema
startPagestringOptionalcannot be nullForm Definition Schema
pagesarrayRequiredcannot be nullForm Definition Schema
sectionsarrayRequiredcannot be nullForm Definition Schema
conditionsarrayOptionalcannot be nullForm Definition Schema
listsarrayOptionalcannot be nullForm Definition Schema
metadataobjectOptionalcannot be nullForm Definition Schema
declarationstringOptionalcannot be nullForm Definition Schema
skipSummaryMultipleOptionalcan be nullForm Definition Schema
phaseBannerobjectOptionalcannot be nullForm Definition Schema
optionsobjectOptionalcannot be nullForm Definition Schema
outputEmailstringOptionalcannot be nullForm Definition Schema
outputobjectOptionalcannot be nullForm Definition Schema
outputsarrayOptionalcannot be nullForm Definition Schema

engine

Form engine version to use (V1 or V2)

engine

Engine Type

string (Engine)

engine Default Value

The default value is:

"V1"

schema

Form schema version to use (1 or 2)

schema

Schema Type

unknown (Schema)

schema Constraints

constant: the value of this property must be equal to:

1

schema Default Value

The default value is:

1

name

Unique name identifying the form

name

Name Type

string (Name)

feedback

Feedback mechanism configuration

feedback

Feedback Type

object (Feedback)

startPage

Path of the first page to show when starting the form

startPage

Start Page Type

string (Start Page)

pages

Pages schema for V1 forms

pages

Pages Type

object[] (Pages Item)

pages Constraints

unique items: all items in this array must be unique. Duplicates are not allowed.

sections

Sections grouping related pages together

sections

Sections Type

object[] (Sections Item)

sections Constraints

unique items: all items in this array must be unique. Duplicates are not allowed.

conditions

Named conditions used for form logic

conditions

Conditions Type

object[] (Conditions Item)

conditions Constraints

unique items: all items in this array must be unique. Duplicates are not allowed.

lists

Reusable lists of options for select components

lists

Lists Type

object[] (Lists Item)

lists Constraints

unique items: all items in this array must be unique. Duplicates are not allowed.

metadata

Custom metadata for the form

metadata

Metadata Type

object (Metadata)

declaration

Declaration text shown on the summary page

declaration

Declaration Type

string (Declaration)

skipSummary

option to skip the summary page

skipSummary

Skip Summary Type

any of the following: array or boolean or number or object or string (Skip Summary)

phaseBanner

Phase banner configuration

phaseBanner

Phase Banner Type

object (Phase Banner)

options

Options for the form

options

Options Type

object (Options)

outputEmail

Email address where form submissions are sent

outputEmail

Output Email Type

string (Output Email)

outputEmail Constraints

email: the string must be an email address, according to RFC 5322, section 3.4.1

output

Configuration for submission output format

output

Output Type

object (Output)

outputs

One or more email targets/types for submission emails

outputs

Outputs Type

object[] (Outputs Item)

Form Definition Schema Definitions

Definitions group conditionGroupSchema

Reference this group by using

{"$ref":"@defra/forms-model/schemas/form-definition-schema.json#/$defs/conditionGroupSchema"}
PropertyTypeRequiredNullableDefined by
conditionsarrayOptionalcannot be nullForm Definition Schema

conditions

Array of conditions or condition references in this group

conditions

Conditions Type

an array of merged types (Conditions Item)