How can I minimize the iframe height of the form

  • moredo66
    Asked on April 12, 2015 at 4: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" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//german.jotform.com/form/50986939075371" frameborder="0" style="width:100%; height:1780px; border:none;" scrolling="no"></iframe>
    <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>

     

    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.

     

  • jonathan
    Replied on April 12, 2015 at 8:22 PM

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

    How can I minimize the iframe height of the form Image 1 Screenshot 30

     

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

    How can I minimize the iframe height of the form Image 2 Screenshot 41

     

    Please inform us if you need further assistance.

    Thanks.