Scroll to top after Submit not working on Wordpress site

  • jacobs_waterflow
    Asked on October 8, 2015 at 1:06 PM

    Hi Jotform, some of this has already been answered, however there is still some confusion. Please use the URL below to reproduce the issue. The Jotform is embedded with the following code:

    <iframe id="JotFormIFrame" style="width: 100%; height: 2189px; border: none;" src="//form.jotformeu.com/form/52801691259358" frameborder="0" scrolling="no"></iframe>

     

    1) After pressing submit, the jotform in the iframe does not scroll to the top to show the thank you.

    Currently my wordpress theme removes the onDISABLEDload="window.parent.scrollTo(0,0)" attribute, so this is why. My question though is, which one should be used:

    a) onDISABLEDload="window.parent.scrollTo(0,0)"

    b) onDISABLEDload="window.parent.scrollTo(0,0)"

     

    2) The above embed code has been generated by your app. It works fine on Chrome on Desktop. However on my Android, the bottom is cut off and so I've had people fill out entire forms and at the end the submit button was not there. I can solve it by just increasing the height. Is this a known issue?

     

    3) I would like to have a different 'Thank You' Message after submitting. Where do I configure this?

     

    Thank you for your patience and help with this,

     

    P. Jacobs

  • Carina
    Replied on October 8, 2015 at 3:26 PM

    Maybe you can create a custom thank you page and then on that custom page you can add an anchor.

    Scroll to top after Submit not working on Wordpress site Image 1 Screenshot 30

    <a name="anchor"></a>

    Please position the anchor on the top of the page. The custom thank you page url will look something like:

    http://www.mywebsite.com/customthankyoupage.html#anchor

    How to change the thank you link:

    Scroll to top after Submit not working on Wordpress site Image 2 Screenshot 41

    Let us know if the problem persists.

    I moved the other questions to new threads so they can be individually addressed by our team:

    http://www.jotform.com/answers/678989 

    http://www.jotform.com/answers/678973 

     

  • jacobs_waterflow
    Replied on October 9, 2015 at 3:46 AM

    Hello Carina, thank you for your answer and a great idea!

    I was now able to embed the complete code and as a consequence it works! Problem solved.

     

  • beril JotForm UI Developer
    Replied on October 9, 2015 at 10:46 AM

    Hi,

    On behalf of my colleague, you are welcome.

    I am happy to hear that the problem was solved.

    If you have any question or issues, please do not hesitate contacting us. We will be glad to assist you.