Required Fields Not Identified in Contact Forms

Required Fields Not Identified in Contact Forms

WCAG Focus: WCAG 3.3.2 (A), 3.3.1 (A), 1.3.1 (A)

If a WordPress contact form silently rejects submissions because a field was mandatory—or marks required inputs only with a red border or an unexplained asterisk—users with visual or cognitive disabilities cannot tell which fields must be completed before hitting Submit.

Why This Pattern Violates WCAG

WCAG 3.3.2 Labels or Instructions (Level A) requires clear visible instructions (e.g., stating “(Required)” in the label or explaining “* indicates required fields” at the top of the form).

Programmatically adding required or aria-required=”true” ensures screen readers announce “required” upon entering the field.

Code Comparison

Inaccessible Unmarked Required Field

<label for="msg">Message</label>
<textarea id="msg" name="msg"></textarea>

Compliant Visibly & Programmatically Marked Required Field

<label for="msg">Message <span aria-hidden="true">(Required)</span></label>
<textarea id="msg" name="msg" required aria-required="true"></textarea>

How to Fix It in WordPress

  • Indicate required fields clearly in label text (not by color alone).
  • Include the HTML required or aria-required=”true” attribute on every mandatory control.

Finding This Issue Automatically

Contact form plugins vary widely in how they render required indicators. Running the WP ADA Compliance Check plugin inspects contact forms for unidentified required fields so visitors always know which inputs are mandatory before submitting.

Subscribe

Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

Cart Accessibility Tools
hide