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

    close form button

    Asked by rudy.hinojosa@wilyware.com on April 08, 2015 at 10:28 AM

    is there a way to add a close form button to any form?  I want to open a browser in Kiosk mode with a jotform. But need a way to close the form while in kiosk mode.

    form button close form close form kiosk mode
  • Profile Image

    Answered by Carina on April 08, 2015 at 01:34 PM

    Would you like to close the browser window or just to open a blank form after submission?

    If you wish to open a blank form after submission please select a custom thank you url and add the form's url:

    If you wish to close the browser window please add an external thank you page with the custom url method:

    In this custom thank you page you can paste this code:

    <html>

    <head>

    <style type="text/css">

     

    .para {

    text-align: center;

    }

    </style>

    </head>

    <body onload="setTimeout('window.close()', 3000)">

    <p class="para"><img src="//submit.jotformpro.com/images/thankyou.gif" width="250" height="100"> </p>

     

    </body>

     

    </html>

     

    You can edit the blue part to reduce the time it takes to close the window.

    You can test the code here:

    https://shots.jotform.com/carina/exp_html/close_window.html 

    Let us know if further support is needed.

  • Profile Image

    Answered by rudy.hinojosa@wilyware.com on April 08, 2015 at 01:41 PM

    I need to be able to close this form via a button, before the submit button is clicked. What if a user changes their mind and doesn't want to enter any information.  If the browser is in Kiosk mode, there is no other way to close the window other then typing ALT+F4. Now what I did was created an iFrame in a separate html file that calls the jotform and added a close button under the iFrame element, but that seems kind of kludgy.  Do you have a simpler self contained suggestion?

  • Profile Image
    JotForm Support

    Answered by david on April 08, 2015 at 03:13 PM

    Though we do not have a "Close Form" button, we do have a "Clear Form" button:

    (1) Go into your Formbuilder for the Form you want to add this to.

    (2) Highlight the " Submit Button " Field (this should automatically put you on the Properties: Submit) tab.

    (3) At the top toolbar of the formbuilder you'll see " Reset Button ", click it once to turn it on.

    (4) You will then see the " Clear Form " button added automatically to the right side of the submit button on your form.

    Unfortunately this is as close as we have at this time.  There is not button to fully close the form.