Scroll to top after Submit not working on Wordpress site

  • Profile Image
    jacobs_waterflow
    Asked on October 08, 2015 at 01: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 onload="window.parent.scrollTo(0,0)" attribute, so this is why. My question though is, which one should be used:

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

    b) onload="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

  • Profile Image
    Carina
    Answered on October 08, 2015 at 03:26 PM

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

    <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:

    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 

     

  • Profile Image
    jacobs_waterflow
    Answered on October 09, 2015 at 03: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.

     

  • Profile Image
    beril
    Answered on October 09, 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.