Lightbox

  • Profile Image
    mathquiz
    Asked on September 10, 2011 at 09:27 AM

    Is There a way that i could put a code in the thank you page. So that when useres reached it the light box would close its self.

     

     

     

    The form is in the feedback button JOIN OUR TROOP

  • Profile Image
    brx250
    Answered on September 10, 2011 at 09:42 PM

    Hi mathquiz,

    You can easily do that with HTML codes and JavaScript. But since script tags are being filtered by JotForm, we will go through HTML. To do this, just add the onLoad event handler into the BODY tag of your thank you page. This means that you'll have to select the Custom URL option after clicking "Thank You" under "Setup & Embed" tab.

    First, create your Thankyoupage.html and make its body tag look like this one below:

    <BODY onLoad="setTimeout(window.close, 5000)">

    5000 here is the time in millisecond, you can change it prior to your liking. Then in your form, select the thank you page to a Custom URL and insert the URL of your Thankyoupage.html.

    Try this and see if it helps.

    Please inform us for any updates so that we can assist you further with your issue. Thank you.

    ___________________________________________________________

    Albert | JotForm Support