Additional redirect options after successful submit
Note: These features are part of the Visforms Subscription and are not included in the free Visforms version.
Out-of-the-box, Visforms already offers several actions, what should happen after the form has been sent:
- If you have specified a redirect URL, the user will always be redirected to this page.
- If you have not specified a redirect ULR, a configurable success message can be issued.
You can set your individual success message. This is always displayed on a separate page. - If neither a redirect URL nor a separate success message is specified, the user will be redirected to the homepage of the website.
A standard message about the successful sending of the form appears in the Joomla message container.
The Visforms Subscription adds a number of additional options to the form. These allow different forwarding after the successful sending of the form, depending on its entries in the form. Furthermore, with the Visforms Subscription you can add a PDF download link to every success message. This download link allows the user to download a PDF file of their transmission data. You can find these additional options in the form configuration under the “Result” tab.
Redirect options after successful submit
Return to previous page
![Return to previous page](/images/subscription/redirect-previous-page-de.jpg)
Note: Settings of this option are only taken into account if you have not specified a forwarding URL.
Depending on whether you have assigned your own success text or not, appears as a message in the Joomla message container on the target page
- either your individual success text
- or the Visforms standard success message.
Replace form with message
If you have enabled the “Return to previous page” option, you can then decide where on the page you want the success text to appear. With a default setting, the success text appears in the Joomla message container. It therefore appears in the place where your template places the Joomla news container. This is at the top of the page for most templates.
Alternatively, you can enable the “Replace form with message” option. The success text is then displayed instead of the submitted form.
This option can be very useful when using Visforms on a one-page website.
Do not return to previous page
![Do not return to previous page](/images/subscription/display-back-link-de.jpg)
Note: Settings of this option are only taken into account if you have not specified a forwarding URL.
Show link to previous page
Suppose a custom success text has been assigned and the “Return to previous page” option is not activated. Then you can use the “Show link to previous page” option to display a link back to the previous page on the success text page. The previous page is the form page.
link text
You can set an individual text for this link to the previous page.
Display a link to the PDF download in the result text
In order to be able to use this feature, you must first have created a PDF template for the form. To do this, follow the instructions under Create PDF documents. You must also specify a “success text”.
![Display PDF download link](/images/subscription/display-pdf-link-result-text-de.jpg)
Then set the “PDF Download Link in Success Text” option to “yes”. You then have to select a PDF template that is to be used to generate the PDF document. This feature works even if the “Save result” option is not activated. If the user exits the result message page and reloads it using F5, the link is no longer valid.
Custom redirect URL
Option-dependent Success Pages allow controlling which page the user is redirected to after successfully submitting the form. The concrete forwarding then takes place depending on the user input made in the form.
If you use the Content Plugin - Visforms Form View it is also possible to store individual redirection URLs for each plugin instance.
To do this, set the option “Allow individual redirect in content plugin” to “yes”.
![Allow Redirect in Content Plugin](/images/subscription/custom-redirect-in-form-view-plugin-de.jpg)
And also use the “redirecturl” parameter in the plugin configuration.
More in:
Add Form to Article.