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

    Popup on browser exit

    Asked by ipbr21054 on July 09, 2015 at 03:35 PM

    I dont seem to have it working though.

    This is the file which has the survey on it http://www.theremotedoctor.co.uk/survey_form.html

    The script taken from the page below was added to the form & a webpage but not working.

    script from here,

    http://www.jotform.com/answers/102600-Pop-Up-on-exit

     

    Also applied here.

    http://www.theremotedoctor.co.uk/accaudi.html?scrollto=selection

     

    popup
  • Profile Image
    JotForm Support

    Answered by Welvin on July 09, 2015 at 03:46 PM

    Please add the following script in the source codes: http://pastiebin.com/559ece5b05239. Add it after the following line in the source codes:

    Thanks

  • Profile Image

    Answered by ipbr21054 on July 09, 2015 at 03:56 PM

    I have copied the code from the paste bin.

    I then put in onto the survey form.

     

    When any page on my site is left the form will then pop up ?

    Please check as so far when i leave any page nothing happens.

    Not sure why thanks.

  • Profile Image
    JotForm Support

    Answered by Welvin on July 09, 2015 at 04:16 PM

    The script will only work within this link: www.theremotedoctor.co.uk/survey_form.html and it's working to my end. Here's a screenshot:

    If you will embed the form using the source codes to your website pages, that should work. But embedding the page (this page: http://www.theremotedoctor.co.uk/survey_form.html) into another page will not.

    Thanks

  • Profile Image
    JotForm Support

    Answered by Welvin on July 09, 2015 at 04:17 PM

    By the way, you have to clear your browser's cache. I think it's not working for you because the old page is still present in your browser cahe.

    Thanks

  • Profile Image

    Answered by ipbr21054 on July 09, 2015 at 04:21 PM

    Maybe i got the workings of it wrong.

    So i need to use the survey full code + the code from the paste bin and then add it to EVERY page on my web site.

     

    Is that correct ?

  • Profile Image
    JotForm Support

    Answered by Welvin on July 09, 2015 at 04:25 PM

    Yes, correct. Thanks

  • Profile Image

    Answered by ipbr21054 on July 09, 2015 at 04:28 PM

    Ok

    I have just tried that but trying to navigate to another section of my site allows the pop up every time.

    You then have to keep clicking on yes.

    I will need to think

  • Profile Image
    JotForm Support

    Answered by Welvin on July 09, 2015 at 04:33 PM

    That is because you are on the current page where the popup script is added. You have to confirm that by clicking yes or the okay button to proceed.

    The popup shouldn't appear in any other pages where the script is not present. 

    Thanks