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.
- Fills in formVisitor reaches the bottom of a long mobile form
- Taps SubmitValidation fails on one field
- Error shown at topBanner is above the screen, nothing visible changes
- Visitor retries or leavesBelieves the form is broken
- 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.
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.
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.
Scroll to the Submit button
Fill in most fields, then leave one required field empty or enter an invalid email.
Tap Submit
Watch the screen. Does it jump to the problem? Does a message appear next to the field? Or does nothing visibly happen?
Repeat with several errors
Leave two or three fields wrong, including one near the top and one near the bottom.
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.
- 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.
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.
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.
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.
Open the theme code
Go to Online Store, Themes, Edit code. Find the form section, often in a file such as main-contact-form or main-register.
Show errors near the field
Most Shopify themes print form.errors at the top. Move or duplicate the error output next to the relevant input, and add an id so it can be linked.
Add focus on error
Add a small script that focuses the first error element when the page reloads with errors. Test on your live theme, as the markup depends on the theme.
Use a Custom HTML tag only as a patch
If you cannot edit the form code, create a Custom HTML tag that runs on the form page and scrolls to the first element with your error class. Use the script in the custom code tab, adjusting the selector.
Trigger it on the right event
Fire it after the form re-renders, for example on a DOM Ready or a custom event the form pushes. Test in Preview mode before publishing.
Style the error state
Select the Form Block's Error Message element. Place it where it is visible, and make the text clear and the colour strong.
Native forms show one message
Webflow's native form shows a single error message for the form, which can appear far from the button. Add custom code to scroll to it, or use inline field validation with custom code.
Add the scroll script
Add the script from the custom code tab in Page settings, Before body tag, and match the class to your error element.
Open the form in the builder
Check the form's layout and make it a single column on mobile, so the Submit button is close to the fields.
Test the validation message
Submit with a missing required field on a phone. If the message is not visible, add a short custom code snippet in the form or page settings to scroll to the first error.
Open the form in the editor
Wix Forms show messages near the fields by default. Check on mobile in the mobile editor view.
Shorten the form
If you use a custom-built form with Velo, show errors in a text element next to the field, and call scrollTo on it. Test in the published site.
Check the form block
Native form blocks show errors beside fields. Test on a phone and see whether the error is visible.
Add code if needed
If the error appears away from the field, add the script in the custom code tab under Settings, Advanced, Code Injection, and adjust the selector.
Add per-field messages
Put an element with role alert or aria-live directly under each input and link it with aria-describedby.
Focus the first invalid field
On failed validation, call focus() on the first invalid field and scroll it into view. See the snippet below.
<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>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();
}
});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
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.
Test several errors at once
Leave three fields wrong. Check that the first one gets focus and all three show messages.
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.
Submit a valid test entry
Confirm the form still sends and the thank-you step appears.
How to prevent it happening again
- 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
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.
Related issues
- PRF-214Error messages unclear or genericFix guide
- PRF-215Errors only shown after submit, all fields clearedFix guide
- PRF-216Form loses entered data on validation errorFix guide
- PRF-212Required fields not markedFix guide
- PRF-219Submit button disabled with no explanationFix guide
- PRF-211Form has too many fields (10+ on a lead form)Fix guide