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

    Exit survey without SUBMIT

    Asked by SEB17 on September 27, 2016 at 04:58 AM

    Based on a question, I wish to allow user to EXIT my survey WITHOUT HITTING THE SUBMIT BUTTON. Please advise. Thx.

  • Profile Image
    JotForm Support

    Answered by John_Benson on September 27, 2016 at 09:48 AM

    You can use the Show/Hide Field condition so that the submit button will be hidden depending on the option selected. Here's my demo form: https://form.jotform.com/62704127910955

    Here's a guide on how I created that demo form: 

    1. Click the Conditions button in the Form Builder.

    2. Select the Show / Hide Field condition.

    3. Create a condition wherein if "Choose One" field is equal to "Submit Form" then the "Submit" button will show. Here's a screen animation:

    Hope that helps. If you need anything else, please let us know. We'll be happy to assist you.

     

  • Profile Image

    Answered by hatzbs on September 27, 2016 at 11:58 AM

    Let me be even clearer:

    1. I user says, for example, "I don't want to take survey" I want to IMMEDIATELY end JotForm session without SUBMIT.

    2. I know how to hide SUBMIT button, but this DOES NOT ABORT JotForm session, and user can go along and fill in survey.

     

    3. My question again, HOW TO IMMEDIATELY ABORT A JotForm session WITHOUT SUBMITTING SURVEY?

    Thx.

     

  • Profile Image
    JotForm Support

    Answered by John_Benson on September 27, 2016 at 02:11 PM

    I'm sorry for the misunderstanding. Unfortunately, it is not possible to close the session if the user selected an option like "I don't want to take survey." 

    You can use Javascript but you need to download our source code and upload it to your own server, here's a guide: How-to-get-the-Full-Source-Code-of-your-Form

    After that, insert this code on how to close a window using Javascript:

    Step One: Insert the following lines of code into the of your HTML page.

    <script language="javascript" type="text/javascript"> 

    function windowClose() { 

    window.open('','_parent',''); 

    window.close();

    </script>

    Step Two: Insert the following line of code into the  of your HTML page.

    <input type="button" value="Close this window" onclick="windowClose();">

     

    Hope this helps. Thank you.