Skip to content

GoToPage

Dr Simon Estill edited this page Jul 16, 2020 · 1 revision

GotoPage

This behavior is navigates to the NextPage depending on Conditions

Structure

  • behaviourType: "GoToPage"
  • PageSlug: string (The page that behaviour goes to
  • conditions List

Example

The following is where if firstQuestion = 'cat' and seconQuestion = 'no' the behavior goes to the 'cat-no' page.

{
          "conditions": [
            {
              "questionId": "firstQuestion",
              "comparisonValue": "cat",
              "conditionType": "EqualTo"
            },
            {
              "questionId": "secondQuestion",
              "comparisonValue": "no",
              "conditionType": "EqualTo"
            }
          ],
          "behaviourType": "GoToPage",
          "PageSlug": "cat-no"
        }
Clone this wiki locally