Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Required fields shown by colour only: how to fix it

PRF-310Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Your form tells people which fields are mandatory by changing colour only. For example, labels turn red, or the input gets a red border, and nothing else sets those fields apart. WCAG 2.2 Success Criterion 1.4.1 (Use of Colour) says colour must not be the only way to show information or prompt an action.

Why it costs you leads or sales

Required marker: colour only vs text and attribute

Colour only

  • Required labels are red, optional labels are grey
  • No asterisk, no word "required"
  • Screen reader reads every field the same way
  • Colour-blind users cannot tell the difference

Text plus attribute

  • Label ends with an asterisk and a legend explains it
  • Optional fields say "(optional)"
  • Input has the required attribute
  • Screen reader announces "required"
Failed first submissions by form designExample numbers
Failed first submissions by form design (example)Colour only: 18 %; Asterisk + legend: 9 %; Asterisk + attribute + legend: 7 %07141897Colour onlyAsterisk + legendAsterisk + attribute …%

Example: illustrative numbers only, showing how unclear required fields can raise first-attempt validation errors.

How to check if your site has it

Quick manual check
  • Open the form and look for any text cue (asterisk, "required") beside mandatory fields.
  • Apply a greyscale filter (for example the browser DevTools Rendering tab, Emulate vision deficiencies, Achromatopsia) and see if you can still tell required from optional.
  • Inspect each mandatory input and check for required or aria-required="true".
  • Turn on a screen reader (NVDA, VoiceOver) and tab through; each required field should be announced as required.
  • Check there is a legend such as "* required" before the first field.

How to fix it

The pattern is the same everywhere: a visible text marker, a legend that explains it, and the required attribute. Keep colour as an extra if you like.

Accessible required fieldhtml
<p>Fields marked with <span aria-hidden="true">*</span> are required.</p>
<form>
  <label for="email">Email <span aria-hidden="true">*</span><span class="sr-only">(required)</span></label>
  <input type="email" id="email" name="email" required>

  <label for="phone">Phone (optional)</label>
  <input type="tel" id="phone" name="phone">
</form>
Visually hidden helper classcss
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
Fix by platform
  1. Use your form plugin's required setting

    In the form builder, open each mandatory field and switch on Required. Most plugins (Contact Form 7, WPForms, Gravity Forms, Fluent Forms) add an asterisk and the required attribute. Check the output in the page source.

  2. Add a legend and set the marker text

    Add a short text line above the form such as "* required". In plugins with a required indicator setting, choose an asterisk or the word required rather than relying on label colour.

How to confirm it's fixed

Confirm the fix
  1. View in greyscale

    Emulate achromatopsia in DevTools and check that required fields are still clear.

  2. Inspect the markup

    Confirm each mandatory input has required and the label has a visible text cue.

  3. Test with a screen reader

    Tab through the form. Each mandatory field should be announced as required.

  4. Submit an empty form

    Check the error messages name the missing fields in text, not only red.

How to prevent it happening again

Keep it fixed
  • Create one shared form component or template with the required pattern built in.
  • Add "required cue is text, not only colour" to your design and QA checklist.
  • Run an automated accessibility scan (such as axe or Lighthouse) on key forms after each release, and do a manual greyscale check.
  • Re-test after switching form plugins, themes or page builders.

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs your customer journeys on a schedule and checks that steps, tracking hits and test leads work; it does not audit how a form signals required fields. The kind of tool that fits is an accessibility testing tool: an automated scanner such as axe DevTools or Lighthouse, plus a manual check with a screen reader and a greyscale view.

Where FunnelGuard does help is the related risk: if a form change breaks submission, a scheduled journey check can show that the form no longer completes. Plans start with a Free tier (1 site, 2 journeys, daily checks, no card).

Questions people ask

Is marking required fields only with red a WCAG failure?

Yes, it generally fails WCAG 1.4.1 Use of Colour, because colour is the only way the requirement is shown. Add a text cue such as an asterisk or the word "required" so the information does not depend on seeing colour.

How do I mark required fields accessibly?

Add the HTML required attribute to each mandatory input, show a visible marker such as an asterisk in the label, and add a legend like "* required" above the form. You can keep a colour accent as an extra cue.

Is an asterisk enough to show a field is required?

An asterisk is fine if you explain it with a legend and the input has the required attribute. Screen readers may not read an asterisk reliably, so the attribute matters just as much as the visible symbol.

Should I use required or aria-required?

Use the native required attribute on real inputs; it is announced by assistive technology and triggers browser validation. Use aria-required="true" only for custom widgets that are not native form controls.

Why do screen readers not say a field is required?

The field probably relies on a colour or CSS class only, with no required or aria-required attribute. Add the attribute and a text cue in the label and the screen reader will announce it.

Is it better to mark optional fields instead of required ones?

Either works if you are consistent and explain it. If most fields are required, labelling the few optional ones with "(optional)" can be cleaner. Always keep the required attribute on mandatory inputs.

Can FunnelGuard detect required fields shown by colour only?

No. This is an accessibility design issue, so you need an accessibility scanner and manual testing. FunnelGuard checks that your funnel journeys, tracking and test leads work, not how fields are marked.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

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.