In place “Thank you” message¶
The ShowFormPage custom submit action makes it possible to show a thank you message after submitting the form without the need of creating a dedicated seperate thank you page.
With this action, the form is replaced inline via ajax, there is no other page loaded.
Let’s create a simple form to let users subscribe to a kind of newsletter.
The form contains a single email field and a submit button, with the submit action save data.
Now, let’s add a second page in the form (just like you would do for a multipage form).
Give the page a name.
Add some components on the thankyoupage.
On the submit button: add the submit action “show form page” and select the thank you page.