Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Form error shown at top, off-screen on mobile: how to fix it

PRF-217Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

The visitor fills in a form, taps Submit and validation fails. Your site shows a red banner such as "Please fix the errors below" at the top of the form or page. On a phone, the Submit button sits far below that banner. The screen does not move, so the visitor sees no change.

The error exists. It is just outside the part of the page the visitor is looking at. This is common with form plugins and themes that were designed on a desktop screen, where the whole form fits in view.

Where the visitor gets lost
  1. Fills in formVisitor reaches the bottom of a long mobile form
  2. Taps SubmitValidation fails on one field
  3. Error shown at topBanner is above the screen, nothing visible changes
  4. Visitor retries or leavesBelieves the form is broken
  5. Lead or saleNever submitted

The error appears, but above the visible area of the screen.

Why it costs you leads or sales

People who reach Submit have already decided to act. They are your warmest visitors. If the form seems to ignore their tap, many will tap again, then give up. They will not know a single field was wrong.

Your analytics will not show the cause. The visitor started the form and never finished, which looks like ordinary abandonment. Paid traffic makes it worse, because you paid for the click that reached the form.

Visitors who tap Submit and see an errorExample numbers
Visitors who tap Submit and see an error (example)Error off-screen at top: 35 %; Inline error + scroll to field: 70 %027543570Error off-screen at t…Inline error + scroll…%

Example: out of 100 mobile visitors who hit a validation error, how many might complete the form depending on where the error appears. Numbers are illustrative, not measured.

How to check if your site has it

You need to trigger an error on a phone-sized screen. Do not rely on a desktop browser at full width.

Test the error behaviour
  1. Open the form on a real phone

    Use an actual iPhone or Android device if you can. If not, use Chrome DevTools device mode (F12, then the device icon) set to a narrow width such as 375 px.

  2. Scroll to the Submit button

    Fill in most fields, then leave one required field empty or enter an invalid email.

  3. Tap Submit

    Watch the screen. Does it jump to the problem? Does a message appear next to the field? Or does nothing visibly happen?

  4. Repeat with several errors

    Leave two or three fields wrong, including one near the top and one near the bottom.

  5. Try a screen reader or keyboard

    Press Tab and Enter. Check that focus moves to the first error, not back to the top of the page.

Signs you have this problem
  • After tapping Submit, the screen stays where it was and no message is visible
  • A red banner appears only when you scroll up
  • The error message says what is wrong but not which field
  • Fields with errors have no red border or message next to them
  • Focus stays on the Submit button after a failed submit

How to fix it

The principle is the same everywhere: put the message where the visitor is looking, and move the screen to the first problem. Do three things. Show a message directly under each faulty field. Move focus to the first invalid field. Optionally keep a short summary at the top that links to each field.

Fix by platform
  1. Check your form plugin settings

    In Gravity Forms, Contact Form 7, WPForms and similar plugins, look for settings that control where validation messages show. Prefer field-level messages over a single message at the top.

  2. Enable scroll to error

    Some plugins offer an option to scroll to the first error or confirmation. Turn it on if present, then test on a phone. Settings differ by plugin and version.

  3. Check your theme

    If your theme hides or restyles error text, add a small CSS rule to make field errors visible, or use the custom code tab below.

Inline error markuphtml
<label for="email">Email</label>
<input id="email" name="email" type="email" required
       aria-invalid="true" aria-describedby="email-error">
<p id="email-error" class="field-error">Enter a valid email address, like name@example.com</p>
Scroll to and focus the first invalid fieldjavascript
const form = document.querySelector('form');

form.addEventListener('submit', function (event) {
  if (!form.checkValidity()) {
    event.preventDefault();
    const firstInvalid = form.querySelector(':invalid');
    firstInvalid.scrollIntoView({ behavior: 'smooth', block: 'center' });
    firstInvalid.focus({ preventScroll: true });
    form.reportValidity();
  }
});
Form error behaviour

Before

  • Single red banner at the top of the page
  • Screen stays at the Submit button
  • No hint which field is wrong
  • Visitor thinks the button is broken

After

  • Message directly under the faulty field
  • Screen scrolls to the first error
  • Focus is on the field, keyboard opens
  • Short summary links to each problem

How to confirm it's fixed

Confirm on real devices
  1. Repeat the failing test on a phone

    Leave a required field empty and tap Submit. The screen should move to that field and show a message.

  2. Test several errors at once

    Leave three fields wrong. Check that the first one gets focus and all three show messages.

  3. Test on both iPhone and Android

    Safari and Chrome handle scrolling and the on-screen keyboard differently. Check that the field is not hidden behind the keyboard or a sticky header.

  4. Submit a valid test entry

    Confirm the form still sends and the thank-you step appears.

How to prevent it happening again

Keep error handling healthy
  • Include a mobile error test in your checklist whenever you change a form, theme or plugin
  • Always test with an invalid entry, not only a perfect one
  • Check sticky headers do not cover the focused field, and add scroll-margin-top if needed
  • Keep error text specific, with a clear way to correct it
  • Re-test after plugin updates, as they can change markup and messages
Stop a sticky header hiding the focused fieldcss
input, select, textarea {
  scroll-margin-top: 96px; /* set to your header height plus a little space */
}

.field-error {
  color: #b00020;
  font-size: 0.9rem;
  margin-top: 4px;
}

How FunnelGuard handles this

FunnelGuard does not check this yet. Whether an error message is visible on a phone screen after a failed submit is a possible future check, but it is not something FunnelGuard tests today.

What FunnelGuard does cover nearby: a robot visitor runs your real journeys on a schedule, such as a lead form, and checks that each step works, that tracking hits reach platforms like GA4, Google Ads and Meta, and that test leads reach your inbox and CRM. If a form stops submitting or a lead never arrives, you get one alert with a screenshot and a likely cause. That does not tell you whether a human sees a validation message on a small screen.

To watch for this yourself, add a mobile invalid-submit test to your release checklist and run it after every form or theme change. Session replay or heatmap tools can also show visitors tapping Submit repeatedly without progress. You can run a free read-only website audit and start on the Free plan with one site and two journeys, no card needed.

Questions people ask

Why does nothing happen when I tap Submit on my form on mobile?

Most often validation failed and the error message is displayed above the visible area, so the screen looks unchanged. Scroll up to check. The fix is to show a message next to each faulty field and scroll or focus the first error.

How do I make a form scroll to the first error?

On failed validation, find the first invalid field with form.querySelector(':invalid'), call scrollIntoView on it, then focus it. If the page reloads with server errors, run the same code on page load. Many form plugins also have a scroll to error setting.

Where should form error messages be placed?

Place them directly beneath or beside the field they relate to, in text as well as colour. A short summary at the top is a useful extra, with links to each field, but it should not be the only message.

Why is my WordPress form error not visible on mobile?

Many WordPress form plugins and themes show a single message at the top or bottom of the form. On a long mobile form that is off-screen. Check the plugin's validation settings, enable scroll to error if available, and test on a phone after changes.

Does an off-screen form error hurt conversions?

Yes, it is likely to. Visitors who tap Submit and see no change often assume the form is broken and leave. It appears as normal abandonment in analytics, so you need to test it yourself on a phone.

How do I stop a sticky header hiding the field with the error?

Add scroll-margin-top to your inputs in CSS, set to about the height of your header. Then the browser leaves space above the field when it scrolls to it.

Can FunnelGuard detect form errors that are off-screen on mobile?

No. FunnelGuard does not check this yet. It runs your real journeys, checks each step and tracking hit, and confirms test leads arrive, but it does not judge whether a validation message is visible on a phone.

Is an error summary at the top of the form bad practice?

No, a summary can help, especially for screen reader users, if it is visible, receives focus and links to each field. It becomes a problem when it is the only message and sits off-screen.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.