User registration submission behaviour | WordPress.org

I am trying to setup a submission behavior when a user signs up through the Forminator form. Upon successful registration, user should see a success message for a few seconds and then the page should reload (or redirect to a different page, based on where the form is placed).

I added two rules to the submission behavior tab, one to display a message for 10 seconds. And another to redirect to a URL (I used {embed_url} so the page would refresh). The second rule never fires. I only get the message and then nothing.

I was able to get a redirection/reload working in a very hacky manner:

1. Enable shortcodes in Forminator through the filter add_filter( 'forminator_replace_variables', 'do_shortcode' );.
2. Assign a CSS class to the Submit button.
3. Register a shortcode that listens to a click event for the Submit button class and then reloads the page after 10 seconds through JS.
4. Place the shortcode in a hidden HTML field in the form.

While it “works” on successful submissions, it also reloads the page when the Submit button is clicked at any point. I also tried placing the shortcode within the Submission Behavior inline message, but the script tags were stripped out.

This is obviously way out of my capabilities. I’d really appreciate some help if this behavior is possible in Forminator. Basically, instead of the page instantly redirecting on successful submission, I’d like the user to see the message for few seconds first before the page redirects.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer