Still cannot reduce the height - is there a different icode to insert s

  • Profile Image
    rghspace
    Asked on May 15, 2018 at 06:49 AM

    Still cannot reduce the height - is there a different icode to insert somewhere? I am completely puzzled.

    Robin



    This is a re-post of a comment on Getting the Form iFrame Code

  • Profile Image
    Kevin_G
    Answered on May 15, 2018 at 09:13 AM

    You may be using the default JavaScript part included in the iFrame code, note that this will overwrite the iFrame height settings. 

    In order to set a fixed height to the iFrame you need to remove the JavaScript part and embed the iFrame code only, example: 

         <iframe

           id="JotFormIFrame"

           onload="window.parent.scrollTo(0,0)"

           allowtransparency="true"

           src="https://form.jotform.com/23456789"

           frameborder="0"

           style="width:100%;

           height: 8815px;

           border:none;"

           scrolling="yes">

         </iframe>


    You may also provide us the page where you've embedded your form so we can inspect it. 

    Thanks. 

  • Profile Image
    rghspace
    Answered on May 15, 2018 at 12:43 PM
    I still have no idea how to do it - But I'll manage with what I've got.
    Robin
    ...
  • Profile Image
    Richie_P
    Answered on May 15, 2018 at 01:53 PM

    Can we have your webpage URL where you have embedded your form so that we can check it out? You could try the Iframe code my colleague has given.

    <iframe id="JotFormIFrame-81341666837969" onload="window.parent.scrollTo(0,0)" allowtransparency="true" allowfullscreen="true" allow="geolocation; microphone; camera" src="https://form.jotform.com/81341666837969" frameborder="0" style="width: 1px; min-width: 100%; height:1369px; border:none;" scrolling="no" > </iframe>

    You could also edit the height to fit your requirement.

    Please give it a try and let us know how it goes.

    Thank you.