{
"metadata": {},
"startPage": "/first-page",
"pages": [
{
"title": "First page",
"path": "/first-page",
"components": [],
"next": []
},
{
"title": "Summary",
"path": "/summary",
"controller": "./pages/summary.js",
"components": []
},
{
"path": "/page-2",
"title": "Page 2",
"components": [
{
"name": "jwjcCz",
"options": {},
"type": "YesNoField",
"title": "Yes or no"
}
],
"next": [
{ "path": "/page-3", "condition": "fNIvrP" },
{ "path": "/page-4" }
]
},
{ "path": "/page-3", "title": "Page 3", "components": [], "next": [] },
{ "path": "/page-4", "title": "Page 4", "components": [], "next": [] }
],
"lists": [],
"sections": [],
"conditions": [
{
"displayName": "Yes or no is yes",
"name": "fNIvrP",
"value": {
"name": "Yes or no is yes",
"conditions": [
{
"field": {
"name": "jwjcCz",
"type": "YesNoField",
"display": "Yes or no"
},
"operator": "is",
"value": { "type": "Value", "value": "true", "display": "true" }
}
]
}
}
],
"fees": [],
"outputs": [],
"version": 2,
"skipSummary": false
}
Describe the bug
When testing a form in preview mode, if you start on a route that isn't in the main flow of the form, conditions won't fire the way they're supposed to.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The form should route to page 3
Repository
Desktop (please complete the following information):
Additional context
Here is the form JSON: