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 c4ec966
Browse filesBrowse the repository at this point in the historyBrowse files
feat(conditional): go to a question based on the value of a linear scale
Each value of a linear scale gets a row with the same select as on
options, the values at the ends with their labels, e.g. "1 - Strongly
disagree". The jumps are stored in extraSettings.goTo as
{value, target}. A value is matched as a whole number, so "04" counts
as 4 as it does for the answer itself. Values outside the scale never
match, so changing the bounds needs no cleanup.
Based on the linear scale support of #3123 by TimedIn.
Co-Authored-By: TimedIn <git@timedin.net>
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
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -270,14 +270,14 @@ Optional extra settings for some [Question Types](#question-types)
270
270
|`columns`|`grid`| Array | - | Array of column identifiers / labels for grid questions |
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
-
|`goTo`|`dropdown, multiple_unique`| Array | see [Jumps](#jumps)| Where to go next for an answer |
274
-
|`next`|`color, date, dropdown, file, grid, long, multiple, multiple_unique, ranking, short, time`| Integer / string | question id, `'submit'`| Where to go after the question when its answer has no `goTo` entry, see [Jumps](#jumps)|
273
+
|`goTo`|`dropdown, linearscale, multiple_unique`| Array | see [Jumps](#jumps)| Where to go next for an answer |
274
+
|`next`|`color, date, dropdown, file, grid, linearscale, long, multiple, multiple_unique, ranking, short, time`| Integer / string | question id, `'submit'`| Where to go after the question when its answer has no `goTo` entry, 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
-
-`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.
280
+
-`goTo` is a list of jumps per answer: `{"optionId": 12, "target": 34}` for an option, `{"other": true, "target": "submit"}` for the answer "Other", `{"value": 4, "target": 34}` for a value of a linear scale. There is at most one jump per answer.
281
281
-`next` is the target after the question when its answer has no jump, or when the question has no answers to choose from. A checkbox question has only `next`: one target for the whole question, whichever options are checked.
282
282
- A target is the id of a later question of the same form or `"submit"` for the end of the form. Without a jump the respondent goes to the following question.
283
283
- 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.
* Whether the value is a list of jumps per answer, each with one answer key and a target, at most one per answer
1081
+
* Whether the value is a list of jumps per answer, each with one answer key (`value` on linear scales, else `optionId` or `other`) and a target, at most one per answer
0 commit comments