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

  • stormingrobots
    Asked on January 4, 2020 at 8:05 PM

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


    form: 90085865384164


    PS: I use the iframe for squarespace  

  • roneet
    Replied on January 4, 2020 at 9:27 PM

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

    The iFrame code would look like the following:

    <iframe id="JotFormIFrame" onDISABLEDload="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

  • stormingrobots
    Replied on January 6, 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> ?

  • VincentJay
    Replied on January 6, 2020 at 4: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.