Exit survey without SUBMIT

  • Profile Image
    SEB17
    Asked 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
    John_Benson
    Answered 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
    hatzbs
    Answered 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
    John_Benson
    Answered 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.