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

    Loaded the IFrame into my website, it adds additional blank space at the bottom of the page underneath the next button, almost like a whole page

    Asked by juliehart28 on February 10, 2014 at 03:53 PM

    http://www.stjohnschool.com/index.cfm?load=page&page=235

     

    See my registration form on my site.  Scroll down towards bottom.  I have multiple pages, but underneath the next form is   Any suggestions to what I am doing wrong?  Here is the source code and its the only code in that module.

     

    <div style="text-align: center;"><span style="line-height: 1.6em;">&nbsp;</span><iframe allowtransparency="true" frameborder="0" id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" scrolling="no" src="//form.jotform.co/form/33436496271863" style="width:100%; height:5164px; border:none;"></iframe></div>

    <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;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

    Page URL:
    http://www.stjohnschool.com/index.cfm?load=page&amp;page=235

    blank space next registration form JotForm style source
  • Profile Image

    Answered by Carina on February 10, 2014 at 04:06 PM

    Hello

    I checked the code, and the Iframe has a height:5164px:

     

    <div style="text-align: center;"><span style="line-height: 1.6em;">&nbsp;</span><iframe allowtransparency="true" frameborder="0" id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" scrolling="no" src="//form.jotform.co/form/33436496271863" style="width:100%; height:5164px; border:none;"></iframe></div>

    <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;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

     

    Please try to change that value to 1400px (I believe it is enough) but adjust to a preferred value.

    Kindly let us know if you need more assistance.