Is there a way to prevent the iframe from automatically adjusting the height of an embedded form?

  • Profile Image
    sarahahmad67866
    Asked on June 11, 2017 at 10:00 AM

    When I click on continue the form height expands accor to form elements, and contacts. is there a way that form height is kept static and the form not expands and contracts. this link can help you understand what I mean.

    http://debt-advisory-services.co.uk/qualification.html

  • Profile Image
    Jim_R
    Answered on June 11, 2017 at 10:28 AM

    I'm afraid this will not be a good practice for the sole reason that the contents of your form are not fixed on each page. If you happen to have a page longer than others, the contents will be cutoff at the bottom if the iframe height was static.

    That's why we had a <script> part included on the iframe embed codes to take care of automatically adjusting the height of the iframe based on the form content.

    Still, if you want to suppress this intended behavior, try removing the <script> part of the iframe embed codes and set a fixed height for your iframe.