GoToPage - smbc-digital/form-builder GitHub Wiki

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"
        }
⚠️ **GitHub.com Fallback** ⚠️