Go to page - smbc-digital/form-builder GitHub Wiki

Go to page

This behavior type allows you to navigate the user to another page of the form.

behaviourType is set to GoToPage

PageSlug is the target page the user will be routed to.

Conditions are optional and are only required if this behavior requires specified conditions before it is used.

NOTE: You can have multiple conditions of different types

Example

      "Behaviours": [
        {
          "conditions": [],
          "behaviourType": "GoToPage",
          "PageSlug": "page-two"
        }
      ]

Example with conditions

      "Behaviours": [
        {
          "conditions": [
           {
             "conditionType": "EqualTo",
             "comparisonValue": "pears",
             "questionID" : "favorouriteFruit"
           }
          ],
          "behaviourType": "GoToPage",
          "PageSlug": "page-two"
        }
      ]