Thank you page still scroll to the top - off the page...

  • Profile Image
    stormingrobots
    Asked on January 04, 2020 at 08:05 PM

    I am using iframe, but it still scroll off the page. Please advice..


    form: 90085865384164


    PS: I use the iframe for squarespace  

  • Profile Image
    roneet
    Answered on January 04, 2020 at 09:27 PM

    Can you please try replacing the onload="window.parent.scrollTo(0,0)" section of the iFrame code with onload="self.scrollTo(0,0)"?

    The iFrame code would look like the following:

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

    Please let us know how it goes.

    Thank

  • Profile Image
    stormingrobots
    Answered on January 06, 2020 at 12:59 PM

    Works perfecting.  Thank you.  so, I wonder if there is similar trick to do it is <script

    type="text/javascript" src="https://form.jotform.com/jsform/form-number"></script> ?

  • Profile Image
    VincentJay
    Answered on January 06, 2020 at 04:30 PM

    I think it depends on the website where you embed the form. If you want, please try using the default embed code and we will check if you need the code or not. 

    Thank you.