Go to top when hitting next page button

  • Profile Image
    lexmoore
    Asked on March 30, 2014 at 11:52 PM

    Hi, 

    I have my form broken into segments by page breaks. However, when I hit "Next", it loads the next section of questions, but the webpage that it is on is scrolled to the bottom of the screen. 

    Page is here: http://www.motodiscovery.com/Custom-Motorcycle-Tour

    The same issue ocurrs when you hit "submit" at the end of the questionnaire, the thank you page has scrolled to the bottom. 

    I would like help in having the pages load and the "top" of the form be shown, instead of having to scroll up to begin the next section. 

    thanks. 

  • Profile Image
    Carina
    Answered on March 31, 2014 at 08:38 AM

    What embedding method did you use? I did some tests with the iframe embedding method and the form/page remained still:

    Let us know if the problem persists.

  • Profile Image
    lexmoore
    Answered on March 31, 2014 at 08:50 AM

    I used the "embed" code and pasted it into website. I tried putting in Iframe, but same result. Page auto scrolls to bottom (after you hit "next") http://www.motodiscovery.com/Custom-Motorcycle-Tour

  • Profile Image
    ashwin_d
    Answered on March 31, 2014 at 10:48 AM

    Hello lexmoore,

    I would suggest you to use your form's using iFrame embed code to embed your form in your web page. Please ensure that you just use the iFrame code and exclude the script code and see if that solves your problem.

    Please use the following iFrame embed code :

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://secure.jotformpro.com/form/40845792649974" frameborder="0" style="width:100%; height:1839px; border:none;" scrolling="no"></iframe>

    Do get back to us if the issue persists.

    Thank you!

  • Profile Image
    lexmoore
    Answered on March 31, 2014 at 10:53 AM

    Same result as before, using the Iframe code you sent. But now I get a bunch of gray space below the "next" button. Scrolling still not correct. 

    http://www.motodiscovery.com/Custom-Motorcycle-Tour

  • Profile Image
    EliezerN
    Answered on March 31, 2014 at 11:46 AM

    @lexmoore

    To resolve the behaviour of the form jumping to the top of the page everytime the Next or Back button is clicked, you must use the Embed Code of the form: 

    Then, make sure to add ?nojump to the form URL right after the string of numbers, like  in this example:

    <script type="text/javascript" src="//form.jotformpro.com/jsform/4089510516123456?nojump"></script>

    Then, embed it to your webpage, that should resolve the issue. Please inform us if you need further assistance with this inquiry.

    Thanks

  • Profile Image
    businet
    Answered on May 16, 2014 at 01:26 AM

    This just doesn't work. This has been going on for a few years - any chance of developers focusing on a simple fix?