Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Iframe height fixed, submit button cut off: how to fix it

CNV-355Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

An iframe is a window that shows another page inside your page. Form tools such as Typeform, Jotform or a CRM form often load this way. If the embed code says height="500", the window stays 500 pixels tall, whatever the form needs.

When the form is taller than the frame, the bottom is clipped. The submit button may sit behind an inner scrollbar, or be fully hidden if the frame has scrolling="no" or overflow: hidden.

Where the funnel breaks
  1. Landing pageVisitor arrives
  2. Form in iframeFields fill in fine
  3. Submit buttonCut off by fixed height
  4. Thank-you pageNever reached
  5. Lead in CRMNever created

The visitor fills the form but never reaches a visible submit button.

Why it costs you leads or sales

People who can't see a button assume the form is broken and leave. Many never notice the inner scrollbar. The problem is worse on phones, where fields stack and the form grows taller, and when error messages push the button down further.

It is hard to spot because the page looks fine on your large desktop screen. Your analytics show form views but few submissions, with no error to point at.

Form completion by deviceExample numbers
Form completion by device (example)Desktop: 12 %; Mobile (cut off): 3 %; Mobile (fixed): 10 %05912310DesktopMobile (cut off)Mobile (fixed)%

Example: the same form on desktop and mobile when the button is cut off on small screens. Numbers are illustrative.

How to check if your site has it

Manual checks
  • Open the page on a real phone and scroll to the form. Can you see the submit button without scrolling inside the form?
  • Resize your desktop browser to about 360 px wide and reload.
  • Trigger validation errors by submitting empty fields, then check the button is still reachable.
  • Open the form step by step if it has several pages; check the tallest step.
  • In dev tools, inspect the iframe and look for a fixed height attribute, scrolling="no" or overflow: hidden.
  • Test in Safari on iPhone as well as Chrome.
A typical problem embedhtml
<iframe src="https://forms.example.com/my-form" width="100%" height="500" scrolling="no" frameborder="0"></iframe>

How to fix it

The best fix is an iframe that resizes to its content. Most form providers offer this through their own embed script. If yours doesn't, give the frame enough height for the smallest screen.

Fix a cut-off iframe form
  1. Copy the provider's current embed code

    Open the form's Share or Embed settings and look for an option such as auto height, dynamic height or a script-based embed. Replace the old iframe with it.

  2. Remove scrolling restrictions

    Delete scrolling="no" and any overflow: hidden on the iframe or its wrapper, so the button can never be fully hidden.

  3. If no auto-resize exists, raise the height

    Use a taller value for narrow screens with a CSS media query, based on the tallest form state including error messages.

  4. Check the parent containers

    A section, column or popup with a fixed height can clip the iframe too. Set those to auto height.

  5. Retest on phone and desktop

    Fill the form, trigger errors and submit a test entry.

Where to change it
  1. Edit the embed block

    Open the page, select the Custom HTML block holding the iframe and paste the provider's auto-resize code. Check theme or page-builder column settings for fixed heights.

Fallback: taller frame on small screenscss
.form-embed iframe {
  width: 100%;
  border: 0;
  height: 700px;
}
@media (max-width: 600px) {
  .form-embed iframe {
    height: 1100px;
  }
}
Before and after

Fixed height

  • Iframe set to 500 px
  • Submit button hidden on mobile
  • Inner scrollbar the visitor misses

Resizing iframe

  • Frame grows with the form
  • Button always visible on the page
  • Errors don't push it out of view

How to confirm it's fixed

Confirmation
  • On a real phone, scroll to the form: the button is visible and tappable.
  • Submit empty to show errors; the button is still reachable.
  • Submit a valid test entry and confirm it reaches your inbox or CRM.
  • Check at 360, 768 and 1280 px widths.
  • Check there is no scrollbar inside the frame.

How to prevent it happening again

Re-test the form on mobile whenever you add fields, change the provider's theme or edit the page layout. Prefer the provider's resizing embed over a hand-written iframe, and avoid fixed heights on parent sections. Add a mobile check to your release checklist for any page with an embedded form.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. When its robot visitor runs your journey, it tries to click the submit button. If the button is hidden or can't be clicked, that step fails, and you get one alert after a re-check from a second region, with a screenshot and a likely cause.

What it does not do: it does not judge whether a button is merely hard for a person to find, for example one that is reachable only by scrolling inside a small frame, and it does not test every phone size and browser. A cut-off button that the robot can still click will pass.

Cover the rest by hand with the checklist above: look at the form on a real phone, at a few widths, and with error messages showing. FunnelGuard has a Free plan (1 site, 2 journeys, daily checks, no card), and paid plans have a 3-day free trial.

Questions people ask

Why is the submit button cut off in my embedded form?

The iframe probably has a fixed height smaller than the form. Anything below that height is clipped or sits behind an inner scrollbar. It is most common on mobile, where fields stack and the form gets taller.

How do I make an iframe height fit its content?

Use the form provider's auto-resize or script-based embed code, which adjusts the frame to the form. A plain iframe can't read the height of another domain's page, so it needs the provider's script or messages to do this.

Can CSS alone fix an iframe that is too short?

CSS can set a larger height, including a taller one on small screens with a media query. It can't measure the content, so the value is a guess and may break when the form changes.

Why does my form look fine on desktop but is cut off on my phone?

On narrow screens the form's fields and text wrap and take more vertical space. A height that fits on desktop is then too short. Parent sections with fixed heights can also clip the frame.

Should I remove scrolling="no" from my iframe?

Yes, in most cases. With scrolling turned off, a clipped button can't be reached at all. Removing it gives visitors a way to scroll, though you should still fix the height so they don't need to.

Can FunnelGuard detect a cut-off submit button?

Partly. It fails the step if the button can't be clicked because it is hidden. It doesn't judge visibility to a human across phone sizes, so you should also check the form on real devices.

Does a hidden submit button affect my ad tracking?

Yes, indirectly. If visitors can't submit, the thank-you page and conversion tags never fire, so your ad platforms see fewer conversions than real interest would produce.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: click fails if hidden.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.