In a recent website project I worked on, the requirement was to send the visitor to a thank you page (with email address passed via query string for tracking by Pardot) after a form has been submitted and then after 5s automatically redirect back to the page where the form was filled submitted from.
Let's see how the above can be set up in this members-only tutorial.
Create a static Page for sending the visitors to after the form has been submitted.
You may want to add a message here that reads something like "Thanks for submitting the form. You'll be redirected to the earlier page in 5 seconds".
Add the following JS in the Page. If using Oxygen, you could do this via a Code Block component.
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $599 one-time).
Already a member? Log in below or here.