external page - smbc-digital/form-builder GitHub Wiki
Go to external page
This behavior type allows you to navigate a user to a external page, This is useful when needing to hand the user off to an external site.
behaviourType
is set to GoToExternalPage
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": "GoToExternalPage",
"PageSlug": "https://www.stockport.gov.uk/"
}
]
Example with conditions
"Behaviours": [
{
"conditions": [
{
"conditionType": "EqualTo",
"comparisonValue": "pears",
"questionID" : "favorouriteFruit"
}
],
"behaviourType": "GoToExternalPage",
"PageSlug": "https://www.stockport.gov.uk/"
}
]