Skip to main content

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

Repeat Page

Allows the user to add multiple sets of answers to the same group of questions. Answers are stored as an array under the key defined by repeat.options.name.

Controller value:
"RepeatPageController"

JSON definition

{
"path": "/page-path",
"controller": "RepeatPageController",
"title": "Page title",
"components": [],
"repeat": {
"options": {
"name": "",
"title": ""
},
"schema": {
"max": 0,
"min": 0
}
}
}

Configuration

PropertyTypeRequiredDescription
componentsComponentDef[]YesArray of component definitions rendered on the page.
conditionstringNoName of a condition that controls whether this page is shown.
controllerControllerType.RepeatYesThe page controller class name. Omit or use "PageController" for the default question page.
eventsEventsNoLifecycle hooks that fire when the page is loaded or saved.
idstringNoStable identifier for the page, used internally by the form engine.
pathstringYesURL path segment for the page (e.g. /details).
repeat.options.namestringYesIdentifier for the repeatable section, used as the key in form state.
repeat.options.titlestringYesLabel displayed per repeated item in the list summary.
repeat.schema.maxnumberYesMaximum number of items the user can add. Cannot exceed 200.
repeat.schema.minnumberYesMinimum number of items the user must add.
sectionstringNoName of a section that groups this page in the form.
titlestringYesHeading displayed to the user at the top of the page.
viewstringNoName of an alternative view template to render for this page.