Stop jump to top on next/back page

  • Profile Image
    whitemountain99
    Asked on June 24, 2020 at 02:18 PM

    I've got a form embedded with the source code. How can I stop the web page from jumping to the top when the next/back buttons are clicked?

    cheers

    Jeff

  • Profile Image
    whitemountain99
    Answered on June 24, 2020 at 02:32 PM

    I tried this 

    <script>

    $(document).ready(function() {   

      JotForm.noJump = true;

    });

    </script>


    from https://www.jotform.com/answers/868131-How-to-prevent-vertical-jumping-on-embeded-form


    but it has no effect. Nor do the other solutions on that page.


  • Profile Image
    whitemountain99
    Answered on June 24, 2020 at 02:40 PM

    It is necessary that the form is embedded with the source code.


  • Profile Image
    whitemountain99
    Answered on June 24, 2020 at 02:55 PM

    Even without any solution applied, if I inspect the Jotform global variable it shows nojump=true, but it is still jumping to the top.


    1593024897Untitled-1.jpg

  • Profile Image
    Jimmy_D
    Answered on June 24, 2020 at 06:44 PM

    Hi, 

    I tested the embedded form, and I could see that the entire page reloads when you click next. This can be due to some kind of script conflict. 

    I would like to suggest you use the iFrame method instead. 

    Related guide.- Getting-the-Form-iFrame-Code

     Let us know should you need further assistance.