-
Notifications
You must be signed in to change notification settings - Fork 2
SubmitAndRedirect
Harry Woodall edited this page Jul 25, 2022
·
1 revision
This behavior will replace the default functionality of returning a success page after successful submission, and instead will redirect to the url supplied.
Required Fields
- conditions: List
- behaviourType: "SubmitAndRedirect"
- SubmitSlugs: List (The SubmitSlug will vary according to the environment)
SubmitSlug
- Environment: string
- URL: string
- AuthToken: string
- redirectUrl: string
The redirect url supports tag parsing and can take values of previous questions.
"RedirectURL": "https://www.redirect.com?parameter={{questionId}}"
The redirect url will be supplied with a 'reference' parameter which will be given the return value passed back by the service.
https://www.redirect.com
Becomes
https://www.redirect.com?reference=01234567890
"Behaviours": [
{
"conditions": [],
"behaviourType": "SubmitAndRedirect",
"SubmitSlugs": [
{
"Environment": "local",
"URL": "https://localhost/api/v1/Home/Post",
"AuthToken": "local-authtoken",
"RedirectURL": "http://exampleRedirectUrl.com"
},
{
"Environment": "Int",
"URL": "http://int/formbuilderservice/api/v1/Home/Post",
"AuthToken": "int-authtoken",
"RedirectURL": "http://exampleRedirectUrl.com"
},
{
"Environment": "QA",
"URL": "http://qa/formbuilderservice/api/v1/Home/Post",
"AuthToken": "qa-authtoken",
"RedirectURL": "http://exampleRedirectUrl.com"
},
{
"Environment": "Stage",
"URL": "http://staging/formbuilderservice/api/v1/Home/Post",
"AuthToken": "staging-authtoken",
"RedirectURL": "http://exampleRedirectUrl.com"
},
{
"Environment": "Prod",
"URL": "http://prod/formbuilderservice/api/v1/Home/Post",
"AuthToken": "prod-authtoken",
"RedirectURL": "http://exampleRedirectUrl.com"
}
]
- Availability
- Actions
- Behaviours
- Breadcrumbs
-
Conditions
- String Conditions
- Date Conditions
- Integer Conditions
- File Upload Conditions
- Custom validation
-
Elements
- AddAnother
- Address
- Button
- Booking
- Checkbox
- Date Input
- Date Picker
- Declaration
- Document Download
- Document Upload
- File Upload
- H1-H6
- HR
- Image
- Inline Alert
- Link
- Map
- Multiple File Upload
- OrderedList
- Organisation
- P
- Radio
- Select
- Street
- Summary
- Success page
- Textarea
- Textbox
- Time input
- Unordered List
- Uploaded files summary
- Warning
- EnabledFor
- Feedback form
- File uploads
- Form Schema
- Header
- Inbound Values
- Integrating with PowerAutomate/0365
- Lookup
- Page
- Payment & Payment calculations
- Preview data structure
- Render conditions
- Reusable elements
- Structure tests
- Success page
- Tag parsers
- Target mapping
- Validators