Solved

Redirect page after submit in Lightbox

  • 15 February 2017
  • 1 reply
  • 104 views

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

icon

Best answer by Stefano 15 February 2017, 19:32

View original

1 reply

Userlevel 7
Badge +4

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?

Reply