Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Form errors shown only in red with no text: how to fix it

PRF-307Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Your form validates input, then shows a problem by changing the field border or label to red. No words appear. The visitor sees a colour change and nothing else.

This breaks two WCAG (Web Content Accessibility Guidelines) rules. 1.4.1 Use of Colour says colour must not be the only way to show information. 3.3.1 Error Identification says that when an error is detected, the field in error is identified and the error is described to the user in text.

About 1 in 12 men and 1 in 200 women have some form of colour vision deficiency. Red on a white or grey field can be hard to see for many of them. Bright sunlight, low-quality screens and dark mode make it worse for everyone.

Why it costs you leads or sales

A visitor presses Submit, the page seems to do nothing, and they cannot tell why. Some retry, some give up. On a checkout or lead form, that is a lost order or enquiry that looks like normal drop-off in your analytics.

It also hurts people who can see the colour. A red border does not say whether the email is missing, malformed or already used. Text removes the guesswork. You also carry legal and procurement risk in markets where accessibility rules apply to your site.

Where the visitor is lost
  1. Fills in formEnters details, one field is invalid
  2. Presses SubmitValidation fails
  3. Red border onlyNo text says what is wrong
  4. Visitor is confusedCannot find or fix the error
  5. Lead or orderNever completed

The form rejects the input, but the only signal is a colour the visitor cannot see or understand.

Form completion after an invalid submitExample numbers
Form completion after an invalid submit (example)Red border only: 55 %; Red border + text + icon: 85 %033655585Red border onlyRed border + text + i…%

Example: of 100 visitors who trigger a validation error, more retry successfully when the error is explained in text. Numbers are illustrative.

How to check if your site has it

Test your form for colour-only errors
  1. Submit the form empty

    Open the form in a normal browser window and press Submit with every field blank or invalid.

  2. Look for words

    Does each problem field show a sentence such as 'Enter a valid email address'? A red outline or red label alone is a fail.

  3. Remove colour

    In Chrome DevTools, open Rendering (Cmd/Ctrl+Shift+P, type 'Rendering') and set Emulate vision deficiencies to Achromatopsia. If you cannot tell which fields are wrong, colour is doing all the work.

  4. Test with a screen reader

    Use VoiceOver (Mac/iOS), NVDA (Windows) or TalkBack (Android). Check that the error text is read out. Missing announcements are covered separately in PRF-308 and PRF-309.

  5. Run an automated scan

    Tools such as Lighthouse or axe DevTools catch some contrast and label problems, but they often miss colour-only errors, so keep the manual test.

How to fix it

Every error needs three things: text that says what is wrong and how to fix it, an icon or symbol as a second visual cue, and a position next to the field. Keep the red if you like it, but make sure the error text itself has at least 4.5:1 contrast against its background.

Error message design

Before

  • Field border turns red
  • No message
  • Visitor guesses what is wrong

After

  • Red border plus warning icon
  • Text: 'Enter an email address like name@example.com'
  • Message sits directly under the field
Add error text on your platform
  1. Check your form plugin

    Gravity Forms, WPForms, Contact Form 7 and Fluent Forms all show text messages by default. If yours only shows red, a theme or custom CSS has probably hidden them (look for display:none on error classes).

  2. Edit the messages

    Set a specific message per field in the plugin's field settings (for example the 'Required field message' or validation message), instead of a generic one.

  3. Fix hiding CSS

    In Appearance > Customize > Additional CSS, remove rules that hide the plugin's error class, then add the error style from the code block below.

Field with visible error text and iconhtml
<label for="email">Email address</label>
<input id="email" name="email" type="email" aria-invalid="true" aria-describedby="email-error">
<p id="email-error" class="field-error">
  <span aria-hidden="true">⚠</span>
  Enter an email address like name@example.com
</p>
Error style that does not rely on colour alonecss
.field-error {
  color: #b00020; /* about 6.5:1 on white */
  font-size: 0.875rem;
  margin: 4px 0 0;
}
input[aria-invalid="true"] {
  border: 2px solid #b00020;
}
A form that fails without saying why

The visitor submits, the field turns red, and no message explains the problem.

How to confirm it's fixed

Confirmation checklist
  • Submitting an empty form shows text next to every invalid field
  • Each message says what is wrong and how to fix it
  • An icon or symbol accompanies the colour change
  • With Achromatopsia emulation on, you can still find every error
  • Error text has at least 4.5:1 contrast against its background
  • A screen reader reads the messages when you move to the field
  • Fixing the field removes the message
  • Works on mobile as well as desktop

How to prevent it happening again

Put error states in your design system, not in one-off page tweaks. Each input component should ship with its message slot, icon and colour pair. Then new forms inherit the pattern.

Prevention habits
  • Add 'invalid submit' to your form QA script for every new or edited form
  • Include a colour-blind emulation pass in design review
  • Run axe DevTools or Lighthouse on key pages after theme or plugin updates
  • Re-test forms after changing form plugins, themes or custom CSS
  • Keep error copy in one place so it stays specific and consistent

How FunnelGuard handles this

FunnelGuard does not check for colour-only form errors today. It is a possible future check, not a current feature.

What FunnelGuard does do is run your real lead forms, checkouts and booking steps on a schedule from the EU or the US with a robot visitor. It checks that each step works, that tracking hits reach ad and analytics platforms, and that test leads reach your inbox and CRM. If a form change breaks submission, you get one alert with a screenshot and a likely cause after a second-region re-check. That does not tell you whether your error messages are accessible.

To watch for this issue, add the invalid-submit test above to your release checklist, run axe DevTools or Lighthouse after changes, and do a periodic screen reader pass on your main forms.

Questions people ask

Why is showing form errors only in red a problem?

Colour alone cannot be seen by everyone. People with colour vision deficiency, people using screen readers and people on poor screens can miss it. WCAG 1.4.1 says colour must not be the only way to convey information.

What does WCAG say about form error messages?

WCAG 3.3.1 Error Identification requires that an automatically detected error is identified and described to the user in text. WCAG 1.4.1 Use of Colour requires another cue besides colour. Together they mean a red border alone fails.

How do I show form errors without relying on colour?

Put a text message next to the field that says what is wrong and how to fix it, and add an icon. Mark the input with aria-invalid="true" and link the message with aria-describedby. Keep the text contrast at 4.5:1 or higher.

How can I test whether my form errors rely on colour only?

Submit the form empty, then turn on Achromatopsia in Chrome DevTools under Rendering > Emulate vision deficiencies. If you cannot tell which fields have errors, or no words appear, your errors rely on colour alone.

Is a red border plus an asterisk enough?

No. An asterisk marks a field as required but does not describe the error. You still need text that explains what is wrong, such as 'Enter your phone number'.

Do form errors in red hurt conversions?

They can. Visitors who cannot tell what went wrong often abandon the form, and this loss shows up as ordinary drop-off. Clear text messages usually reduce retries and abandonment, though your results will depend on your form and audience.

Does FunnelGuard detect colour-only form errors?

No. FunnelGuard does not check this today, though it is a possible future check. It does monitor that your forms submit, tracking fires and test leads arrive, so use a manual test or a tool like axe DevTools for error accessibility.

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.