How can I minimize the iframe height of the form

  • Profile Image
    Asked on April 12, 2015 at 04:28 PM

    I want to minimize my form because it´s to long could you please help me that I can scroll down the form on my page


    I think the I-Frame code should be chanced but I don´t know how to do this.


    The best size would be 670 x 670


    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//" frameborder="0" style="width:100%; height:1780px; border:none;" scrolling="no"></iframe>
    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args =":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight" = args[1] + "px";break;case "collapseErrorPage":if (iframe.clientHeight > window.innerHeight) { = 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>


    I hope you can help me


    Thank´s for a quick reply Peter


    P.S. The page is not online I´m just building it.


  • Profile Image
    Answered on April 12, 2015 at 08:22 PM

    Please refer to the user guide -Getting-the-Form-iFrame-Code


    You can adjust the height of the iframe in the given embed code


    Please inform us if you need further assistance.