How can I show visitors a confirmation dialogue and redirect?

Upon submitting the form on my lead gen LP, I’d like to initially show my visitors a form confirmation dialogue that says “Thank you! Your ebook is on it’s way to your inbox.” and then after a few seconds, automatically redirect them to another page.

Is there anyway to do this? I found an old post in the community that linked to a script, but that just sends me to a 404 page now.

Any help would be appreciated!

Thank you :slight_smile:

Hi Joe -

I have this working on a current project like this: Once the user submits the form on the “Optin/Promo” landing page, that form redirects to a “Thank You! Your eBook is on its way to your inbox” landing page. On the “Thank You” landing page add this script to the Javascript section (before body end tag) and update the URL you want your Thank You landing page to delay redirect to (you can adjust the delay time here: var delay = 10;):

<script>
 
  (function(){
  
    // Your URL
    var url = 'https://www.yourpagetoredirectURLgoeshere';
  
    // Delay before the redirect takes place, in seconds
    var delay = 10;
    
    window.setTimeout(function() {
     window.open(url, '_parent');
    }, delay * 1000);
  
  })();
 
</script>

1 Like