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

  • claimyourrental1
    Asked on February 24, 2015 at 3: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

  • raul
    Replied on February 24, 2015 at 4: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.