On this page
What this issue is
Inline validation checks what a visitor types and shows an error message. It is helpful when it runs at the right moment. The problem is validation wired to the input, keydown or keyup event, which runs after every single character.
The result is an email field that says "Please enter a valid email" after you type j, or a phone field that strips or rejects characters mid-typing. In worse cases, the code re-renders the field on each keystroke, so the cursor jumps or the input loses focus and typing is blocked.
Why it costs you leads or sales
Visitors are told they made a mistake before they have made one. That feels like a broken form, and some will leave. The effect is usually small for simple forms, which is why the business impact is low, but it grows on long forms and on mobile, where typing is slower and layouts shift when error text appears.
Input that is blocked or reformatted too early causes real lost data. Phone masks that fight with autofill, or fields that drop characters, can make a visitor give up or submit a wrong number.
- Lands on formPage loads fine
- Starts typingError shows after first character
- Gets frustratedField blocks or reformats input
- Submits formLead never sent
The break happens in the field, before the visitor can finish.
How to check if your site has it
Type slowly into each field
Enter an email one character at a time. If an error shows before you reach the @ sign, validation runs on every keystroke.
Test on a phone
Use a real phone or your browser's device mode. Watch for layout jumps and for the keyboard closing when an error appears.
Try autofill and paste
Let the browser autofill the form, and paste a phone number with spaces. Check that nothing is stripped or rejected oddly.
Look for the event in the code
In browser DevTools, open Elements, select the input and check the Event Listeners panel for
input,keydownorkeyuphandlers tied to validation.
How to fix it
The principle is the same everywhere: show errors after the visitor leaves the field or presses submit. Once a field has shown an error, it is fine to re-check on each keystroke so the error clears as soon as the input is valid.
Check the form plugin settings
In plugins such as Gravity Forms, WPForms or Contact Form 7, look for an inline or live validation option and switch it off, or set it to validate on submit. Options differ by plugin and version.
Look for custom scripts
If the behaviour persists, search your theme and any snippet plugin for
keyuporinputhandlers on form fields.
Find the theme script
Go to Online Store > Themes > Edit code and search for
keyuporinputin the form's JavaScript file or section.Switch the event to blur
Change the validation listener to
blurorchange, or rely on the browser's built-in validation on submit.
Use native form validation
Webflow's native forms validate on submit. If errors appear while typing, check Project Settings > Custom Code and page-level embeds for custom scripts.
Edit or remove the script
Change the event to
bluras shown in the code example below.
Check Custom HTML tags
Open Tags and look for Custom HTML tags that add validation to forms. Edit the event to
blur, then preview and publish.
Move validation to blur and submit
Replace
inputorkeyuplisteners withblurandsubmit, as in the example below. Never callpreventDefault()onkeydownfor ordinary characters.
const email = document.querySelector('#email');
const error = document.querySelector('#email-error');
function check() {
const ok = email.validity.valid;
error.textContent = ok ? '' : 'Please enter a valid email address.';
email.setAttribute('aria-invalid', String(!ok));
return ok;
}
// Show the error only after the visitor leaves the field
email.addEventListener('blur', check);
// Once an error is showing, re-check while typing so it clears early
email.addEventListener('input', () => {
if (email.getAttribute('aria-invalid') === 'true') check();
});On every keystroke
- Error appears after the first letter
- Layout jumps while typing
- Characters may be rejected or reformatted
On blur and submit
- Error appears only after leaving the field
- Error clears as soon as the input is valid
- Typing is never interrupted
How to confirm it's fixed
- Type an email slowly: no error until you leave the field
- Leave the field with a bad email: the error appears
- Correct the email: the error clears while you type
- Paste and autofill work without lost characters
- The form still submits with valid data
- Checked on a real phone as well as a desktop
How to prevent it happening again
Add a typing test to your form release checklist, and re-run it after any theme, plugin or form-builder update. Prefer the browser's built-in validation or your form tool's default settings over custom scripts. Ask whoever adds custom form code to use blur and submit.
How FunnelGuard handles this
FunnelGuard does not check this yet. Typing-timing checks are a possible future addition, so today it will not tell you that validation fires on every keystroke.
What it does catch nearby is the outcome of a broken form. A robot visitor runs your lead form on a schedule, checks each step, and confirms a test lead reaches the inbox and CRM. If an over-eager validator stops the robot from submitting, that failed journey is re-checked from a second region and you get one alert with a screenshot. It cannot tell you the cause is keystroke timing, and it will not notice a form that is merely annoying but still works.
To watch for the annoying kind yourself, type slowly into the form after every change, and use a session-recording or form-analytics tool to look for fields with many corrections or abandonments. The Free plan covers 1 site and 2 journeys with daily checks, no card needed.
Questions people ask
Why does my form show an error as soon as I start typing?
The validation code is listening to the input, keyup or keydown event, so it runs after every character. Change it to run on blur (when the visitor leaves the field) and on submit.
Should form validation happen on blur or on submit?
Both work. Validating on blur gives quick feedback once the visitor has finished a field, and validating on submit catches anything missed. Avoid validating on every keystroke for a field that has not been completed.
Why does my form field stop me from typing?
A script is probably cancelling key presses, rejecting characters through an input mask, or re-rendering the field on each keystroke so it loses focus. Look for keydown handlers calling preventDefault() and for frameworks that rebuild the input on every change.
How do I stop the email error showing after one letter?
Move the check from the input event to blur. Optionally re-check on input only after an error has already been shown, so it disappears as soon as the email becomes valid.
Is real-time form validation bad for conversions?
Not when it is timed well. Feedback after a field is completed helps, while errors before the visitor has finished typing frustrate them. Test your own form on mobile to see how it feels.
Does FunnelGuard detect validation that fires on every keystroke?
No. FunnelGuard does not check this yet. It does run your real lead form on a schedule and alerts you if the journey fails or the test lead never arrives.
Related issues
- CNV-029Valid email rejected (plus addressing, new TLDs)Fix guide
- CNV-032Validation error message not shown, form just does nothingFix guide
- CNV-033Error message shown in the wrong place or hidden off-screenFix guide
- CNV-035Phone validation rejects valid mobile numbersFix guide
- CNV-034Errors clear all entered dataFix guide
- CNV-031Required field can be left blank and the form still submitsFix guide