JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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.
Scroll to top after Submit not working on Wordpress siteAsked by jacobs_waterflow 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:
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,
Mobile scroll to top scroll Scroll to top WP Wordpress
Maybe you can create a custom thank you page and then on that custom page you can add an anchor.
Please position the anchor on the top of the page. The custom thank you page url will look something like:
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:
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.
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.