I have a form which show a lightbox after submission to confirm it. I want to redirect to another page after that
1st solution : the user submit the form --> the lightbox appears --> the redirection comes after the user click the close button of the lightbox.
2nd solution : I can also redirect to another page after a delay : the user submit the form --> the lightbox appears --> after 5 sec, the lightbox disappear and the user is redirected.
How can I do the 1st or 2nd solution and which one is the easiest way? Thanks