Exit survey without SUBMIT

  • SEB17
    Asked on September 27, 2016 at 4:58 AM

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

  • John_Benson
    Replied on September 27, 2016 at 9: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.

    Exit survey without SUBMIT Image 1 Screenshot 40

    2. Select the Show / Hide Field condition.

    Exit survey without SUBMIT Image 2 Screenshot 51

    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:

    Exit survey without SUBMIT Image 3 Screenshot 62

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

     

  • hatzbs
    Replied 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.

     

  • John_Benson
    Replied on September 27, 2016 at 2: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 javascriptDISABLED:

    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" onDISABLEDclick="windowClose();">

     

    Hope this helps. Thank you.