Closed JoeyNtriga closed 2 months ago
@JoeyNtriga This will change in FB 5.1. And it will be a kind of breaking change for the json response (redirect path will be no longer available in message block of type success
.
simple text
or snippet
:JSON Response
// success
{
"success": true,
"redirect": null,
"messages": [
{
"type": "success"
"message": "Thanks"
}
]
}
// error
{
"success": false,
"redirect": null,
"messages": [
{
"type": "error"
"message": "An error occured"
}
]
}
FlashBag (only for submission via browser-redirect): message
added to section success
or error
.
redirect to document
:{
"success": true,
"redirect": "/en/my-page-after-form-submission",
"messages": [
{
"type": "redirect_message",
"message": "You'll be redirected"
}
]
}
FlashBag: message
added to section formbuilder_redirect_flash_message
.
Hi,
I've recently observed that when the output workflow is configured to redirect to another page, the success message displayed above the form shows the path to the redirection target. While this may not be an issue in most cases, it can become confusing when the form shares a page with other content and the user navigates back to that page.
Wouldn't it be better to simply not display a success message when the redirect option is selected?