What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image


    Asked by mathquiz 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

    Page URL:

  • Profile Image

    Answered by brx250 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