Redirect page after submit in Lightbox


#1

Hi there,

Currently I have an external form embedded in a lightbox frame. After submitting the form it redirects to a thank you page, within the lightbox.

I would like to have the whole page redirected to the thank you page.

How can I do this?

Thanks,
Glenn


#2

Hey @gvdplaat, sorry for the late reply here!

Throw this script into your “Lightbox Form Confirmation Dialog”, select “before body end tag”.

You can add a little “loading” icon for style!

<script>
 
  (function(){
  
    // Your URL
    var url = 'https://your.url.com/lp';
  
    // Delay before the redirect takes place, in seconds
    var delay = 0;
    
     window.setTimeout(function() {
      window.open(url, '_top');
    }, delay * 1000);
  
  })();
 
</script>

Let me know if this is what you were looking for?