What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

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.


  • Profile Image

    How can I get the Next Page button to go to top of next page

    Asked by claimyourrental1 on February 24, 2015 at 03:32 PM

    You can see on my form that when you click to the next page, it will go to the bottom of the next page when I want the next page to show up at the top. 

     

    Please advise.

     

    Jesse

    Page URL:
    http://claimyourrental.com/

    next top page button click
  • Profile Image

    Answered by raul on February 24, 2015 at 04:49 PM

    You need to include the script part of the iframe code to achieve this result.
    Please try to add the following code below the </iframe> tag.

    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;case "collapseErrorPage":if (iframe.clientHeight > window.innerHeight) {iframe.style.height = window.innerHeight + "px";}break;case "reloadPage":window.location.reload();break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

    Let us know if this helps.
    Thanks.