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

    How do I stop my form scrolling down automatically when it is embedded in another website (Squarespace)?

    Asked by jvanpolysol on August 30, 2016 at 10:20 PM

    I currently have a form:

    https://form.jotform.co/62371313110843

    It is embedded in a Squarespace site:

    http://metalaw.com.au/tax-invoice

     

    When the page loads, the form is perfectly in view, with the form starting in view.

    After you hit Next, it automatically scrolls down a little (somewhere that isn't the top).

    My question is how do I stop my form scrolling down automatically?

    Page URL:
    https://www.metalaw.com.au/tax-invoice

    Screenshot
    squarespace stop another in
  • Profile Image
    JotForm Support

    Answered by Chriistian on August 31, 2016 at 03:46 AM

    I checked the form on your webpage and I was able to replicate the issue. Upon clicking the Next button, the form scrolls a little bit to the bottom.

    I see you are currently using the iFrame embed code. To resolve the issue, can you please try using the iFrame embed code only without the <script>...</script> part?

    You can copy the code below and use it instead.

    <iframe id="JotFormIFrame-62340152927856" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://form.jotform.co/62340152927856" frameborder="0" style="width: 100%; height: 463px; border: none;" scrolling="no"></iframe>

    If the issue persists, please let us know.
    Regards.

  • Profile Image

    Answered by jvanpolysol on August 31, 2016 at 04:03 AM

    Thanks for looking into that.

    I made a new page:

    https://www.metalaw.com.au/iframenoscripttag

    with code:

    <iframe id="JotFormIFrame-62340152927856" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://form.jotform.co/62340152927856" frameborder="0" style="width: 100%; height: 463px; border: none;" scrolling="no"></iframe>

    and it still seems to have the problem.

     

    I forgot to add that I tried all the embed modes previously.

    https://www.metalaw.com.au/iframenoscripttag

    https://www.metalaw.com.au/source

    https://www.metalaw.com.au/embed

    https://www.metalaw.com.au/iframe

    https://www.metalaw.com.au/sqembed (recommended generated code for Squarespace)

     

    Please let me know if you have any ideas. This is the only thing stopping me from getting a paid subscription :)

  • Profile Image
    JotForm Support

    Answered by Chriistian on August 31, 2016 at 05:21 AM

    Thank you for letting us know of your previous tests. I see you have already tried all the possible embed codes and the issue still persists. Perhaps we can try adding the ?nojump to the iframe code to resolve the issue.

    You can copy the code below where I have added ?nojump.

    <iframe id="JotFormIFrame-62340152927856" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://form.jotform.co/62340152927856?nojump" frameborder="0" style="width: 100%; height: 463px; border: none;" scrolling="no"></iframe>

    Please let us know how it goes.
    Thank you.

  • Profile Image

    Answered by jvanpolysol on August 31, 2016 at 08:19 PM

    Thanks Chriistian,

    It looks to be working now, with the ?nojump parameter and with and without the script tag.

    https://www.metalaw.com.au/nojumponly

    https://www.metalaw.com.au/nojumpwscript

    Is there any further documentation on the ?nojump parameter?

     

  • Profile Image
    JotForm Support

    Answered by Chriistian on August 31, 2016 at 09:47 PM

    I am glad to know that the ?nojump is working for you. :) Unfortunately we do not have further documentation on the ?nojump parameter. This attribute is added to prevent the page from jumping to a certain part of the page or if the behavior of the iFrame embed is not the usual. 

    If you need further assistance, feel free to contact us again.
    Regards.