close form button

  • rudy.hinojosa@wilyware.com
    Asked on April 8, 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.

  • Carina
    Replied on April 8, 2015 at 1: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:

    close form button Image 1 Screenshot 30

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

    close form button Image 2 Screenshot 41

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

    <html>

    <head>

    <style type="text/css">

     

    .para {

    text-align: center;

    }

    </style>

    </head>

    <body onDISABLEDload="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.

  • rudy.hinojosa@wilyware.com
    Replied on April 8, 2015 at 1: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?

  • David JotForm Support
    Replied on April 8, 2015 at 3: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.

    close form button Image 1 Screenshot 20

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