Change the height of the iFrame

  • Profile Image
    DJporter
    Asked on September 18, 2013 at 07:12 AM

    Can I dynamically shorten the height of an iframe? I have conditional statements that can make my form short or long. I would like to adjust the size of the iframe accordingly.

  • Profile Image
    khrisell
    Answered on September 18, 2013 at 10:10 AM

    Hello,

    You can manually adjust the height of the iframe.

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//support.jotform.com/form/32580474878164" frameborder="0" style="width:100%; height:2689px; border:none;" scrolling="no"></iframe>

     

     

    You can adjust it according to your preference.

    Re-embed it to your website/page and manually adjust the value of the height.

     

    If you need further assistance, please let us know.

    Thank you .:)