You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b292c72
Browse filesBrowse the repository at this point in the historyBrowse files
feat(conditional): go to a question after checkbox questions
Checkbox questions get the select "After question N", stored in
extraSettings.next: one target for the whole question whichever options
are checked, as in Microsoft Forms. Several checked options cannot lead
to different targets, so there is no target per option.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Copy file name to clipboardExpand all lines: docs/DataStructure.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,14 +271,14 @@ Optional extra settings for some [Question Types](#question-types)
271
271
|`rows`|`grid`| Array | - | Array of row identifiers / labels for grid questions |
272
272
|`questionType`|`grid`| String |`checkbox`, `number`, `radio`| Type of cell for grid questions (checkbox, numeric input, or radio) |
273
273
|`goTo`|`dropdown, multiple_unique`| Array | see [Jumps](#jumps)| Where to go next for an answer |
274
-
|`next`|`color, file, grid, long, ranking, short`| Integer / string | question id, `'submit'`| Where to go after the question, see [Jumps](#jumps)|
274
+
|`next`|`color, file, grid, long, multiple, ranking, short`| Integer / string | question id, `'submit'`| Where to go after the question, see [Jumps](#jumps)|
275
275
276
276
### Jumps
277
277
278
278
An answer can lead to a later question or to the end of the form, as in Microsoft and Google Forms. The form stays a flat list of questions.
279
279
280
280
-`goTo` is a list of jumps per answer: `{"optionId": 12, "target": 34}` for an option, `{"other": true, "target": "submit"}` for the answer "Other". There is at most one jump per answer.
281
-
-`next` is one target after the whole question.
281
+
-`next` is one target after the whole question; on a checkbox question it applies whichever options are checked.
282
282
- A question has either jumps per answer or one jump after the question, depending on its type: `goTo` only on `dropdown` and `multiple_unique`, `next` only on the other types listed above. Sending `next` on a question type with `goTo`, or `goTo` on a question type with `next`, is rejected with 400 "Invalid extraSettings". An answer without a `goTo` entry leads to the following question.
283
283
- A target is the id of a later question of the same form or `"submit"` for the end of the form, and `optionId` is the id of an option of the question. Ids of questions of other forms and option ids that are not options of the question are rejected as invalid `extraSettings`; ids of deleted questions of the form are accepted. Without a jump the respondent goes to the following question.
284
284
- Jumps never go back: the server removes jumps to the question itself or to an earlier question when a question is updated, reordered or copied, and when a form is copied or imported; copying or importing a form also drops `goTo` or `next` on question types without it. Updating, reordering and copying a question still succeed with their usual status, and the payload keeps its shape: a reorder adds the new `extraSettings` of the questions concerned, and a copied question is returned with its reduced `extraSettings`. The response header `X-Forms-Adjusted` lists the questions that lost jumps, e.g. `removed-jumps=(3 7)`, see [Adjustments by the server](API_v3.md#adjustments-by-the-server).
0 commit comments