How to change the width and margins of the embedded iframe

  • SunbridgeInstitute
    Asked on December 18, 2015 at 10:15 AM

    My embedded iframe is not landing on my primary form in the way I would like.

    The form I am embedding INTO is this: http://www.jotform.com//?formID=53434184222954
    (the olive green section just under "For Administrators" at the top)

    You can see here that the embedded portion is rather narrow, allowing room for a label on the left, but I don't want to have a label there; I would rather have a wider embedding frame, so that users don't have to scroll down so much.

    Of course I want the embedding frame to follow the same margins as the other aspects of my form.

    Can you help me?

  • Boris
    Replied on December 18, 2015 at 12:03 PM

    If I understand you correctly, your form 53434184222954 (Summer Series 2016) will have another form embedded into it, and this other form is embedded through the Iframe Embed widget,

    Please try disabling the label of the widget on your main form, and see if that resolves the issue you are experiencing. You can disable the label by clicking on the gear-shaped icon of the widget, selecting Edit Properties, and under Label set it to Disable.

    Please refer to the image below for visual guidance:

    How to change the width and margins of the embedded iframe Image 1 Screenshot 40

    Additionally to disabling the label of the widget, if you want the embedded iFrame to always take the full available width of the main form, you can also try injecting the following custom CSS into your main form:

    #cid_176, #customFieldFrame_176 { width: 100% !important; }

    You can inject the above CSS code by opening your form in the Designer:

    How to change the width and margins of the embedded iframe Image 2 Screenshot 51

    In the Designer, please change to the CSS tab, and paste the code at the bottom of the textbox:

    How to change the width and margins of the embedded iframe Image 3 Screenshot 62

    Please let us know how it goes, or if you need any further clarifications or assistance regarding this, and we will be most happy to help. :)