Web Design

Accessible Forms: Labels, Errors, CAPTCHAs and Payment Steps for Nonprofit Sites

A clay 3D render seen from directly above of an open tool chest drawer lined with soft gray foam, where matte handmade clay tools each sit in their own cut-out slot and one slot is empty and softly highlighted in warm yellow, its small clay wrench resting just beside it, a visual for accessible forms where every field has a clear label and a missing answer is easy to find

Accessible forms are forms people can complete with a keyboard, a screen reader, voice control or a password manager. On nonprofit and association sites, that means the donate, join, renew, register and contact forms. WCAG judges those forms as whole processes, so one broken step fails the entire flow.

Our plain guide to web accessibility notes that missing form labels are among the most common failures on the web. This post covers forms alone: labels, required fields, errors, autocomplete, logins, CAPTCHAs, timeouts, payment steps and embedded vendor forms, with WordPress and Drupal notes.

The short version: give every field a visible label tied to it in code. Describe errors in text, next to the field, with a fix. Add autocomplete values to fields about the person filling in the form. Replace puzzle CAPTCHAs with quieter checks. Warn before a session times out. Test the full flow, including the payment or AMS step you do not host.

Why one broken step fails the whole form

WCAG’s "complete processes" rule says that when a page is part of a process, every page in it must conform. The W3C’s conformance guidance uses an online store as the example, with every page through checkout included.

For a nonprofit, the process is the gift, the renewal or the registration. A donation page can be perfect. If the card step behind it traps keyboard users, the donation flow fails.

Payments add 3.3.4 Error Prevention (Legal, Financial, Data), Level AA. It covers pages that cause "financial transactions for the user to occur." The submission must be reversible, checked for errors, or open to review and correction before it is final. A review step before "Donate" covers it.

Labels: the base layer of accessible forms

Three Level A criteria meet at the label. 1.3.1 Info and Relationships wants the label tied to the field in code. 3.3.2 Labels or Instructions wants a label wherever input is needed. 4.1.2 Name, Role, Value wants every control to expose its name.

The W3C’s Forms Tutorial, updated March 27, 2026, is the reference to keep open. It says "Accessible forms are easier to use for everyone, including people with disabilities." Its labeling page sets the order of preference:

  • Use a label element whose for attribute matches the field’s id.
  • Hide a label only when the purpose is obvious, such as a search box next to a Search button. Use a visually hidden class, never display: none.
  • Avoid the title attribute as the only label. The W3C calls it less reliable.

Preset donation amounts and membership levels belong in a fieldset with a legend. Without one, a screen reader user may hear "$50" with no question attached.

Placeholder text is not a label, because it disappears once someone types. Split phone fields with no text label are failure F82.

Required fields in accessible forms

Say "required" in the label, or say once at the top that every field is required unless marked optional. An asterisk works if you explain it before the form starts. A red border alone tells a screen reader user nothing. Our color contrast guide covers why color cannot carry meaning by itself.

The aria-required attribute helps, but the W3C lists it as advisory, so pair it with visible text. Keep instructions short. The Understanding page for 3.3.2 warns that "Too much information or instruction can be just as harmful as too little." Put format hints next to the field they apply to.

Error messages that say what went wrong and how to fix it

3.3.1 Error Identification, Level A, says the field in error is identified and "the error is described to the user in text." 3.3.3 Error Suggestion, Level AA, says known fixes must be offered unless that would weaken security.

The tutorial’s notifications page gives the pattern for accessible forms:

  • Put the count in the page title, such as “3 Errors: Billing Address.”
  • List errors above the form, each linked to its field.
  • Repeat each error next to its field, linked with aria-describedby, and set aria-invalid.
  • Move focus to the first field with an error.

Then keep what the person typed. The W3C’s Redundant Entry guidance uses a payment error as its example: the form keeps the card number.

Field Weak message Message that passes 3.3.1 and 3.3.3
Email Invalid input Email address needs an @ sign, like name@example.org
Donation amount Error Enter an amount of $5 or more
Date of birth Red border only Date of birth must be a past date, written MM/DD/YYYY

Autocomplete attributes for donor and member fields

1.3.5 Identify Input Purpose, Level AA, covers fields "collecting information about the user." The fix is the HTML autocomplete attribute, technique H98. Wrong values are failure F107. The Understanding page for 1.3.5 says browser guesswork does not count.

Field autocomplete value Note
Name given-name, family-name Or name for one field
Employer or school organization Common on membership forms
Email and phone email, tel Pair with matching input types
Address address-line1, postal-code, country-name Prefix billing or shipping when both appear
Card cc-name, cc-number, cc-exp, cc-csc Usually set by the payment vendor
Login username, current-password, one-time-code new-password when creating an account

Fields about someone else are out of scope. On a gift membership or tribute gift form, leave the autocomplete values off the recipient’s fields.

Logins and repeated questions in renewal and registration forms

Our post on the nine new WCAG 2.2 criteria explains two that hit member forms hardest.

3.3.7 Redundant Entry, Level A. Do not ask for the same thing twice in one process. A "billing address same as mailing address" checkbox is the W3C’s own example. The Understanding page says "a process can run across different domains," and a third-party payment provider in checkout "would be in scope." If your vendor asks again for the email the donor just typed, that counts.

3.3.8 Accessible Authentication (Minimum), Level AA. It covers logging in, not account creation. A renewal that starts with a member login must work with password managers and allow paste. Our passkeys explainer covers one way to meet it.

CAPTCHAs on donation and contact forms

Donation and contact forms attract bots, so many sites add a CAPTCHA. The W3C note Inaccessibility of CAPTCHA, a Group Draft Note dated December 16, 2021, calls character-based CAPTCHAs "largely inaccessible and insecure." It says audio versions add heavy cognitive load and are hard for deaf-blind users.

Its preference is plain: "we prefer non-interactive approaches because these pose no accessibility challenges." It lists honeypot fields, spam filtering and background checks, and flags privacy concerns with some services. If a puzzle is needed, offer more than one type.

WCAG backs this up. 1.1.1 Non-text Content requires a text description of any CAPTCHA and an alternative for a different sense. 3.3.8 requires a login CAPTCHA to have a method with no cognitive test.

Timeouts on registration and checkout forms

2.2.1 Timing Adjustable, Level A, covers every time limit the site sets, including session timeouts. The Understanding page lists the ways to pass:

  • Let the user turn the limit off before reaching it.
  • Let the user adjust it to at least ten times the default.
  • Warn the user and give “at least 20 seconds to extend the time limit with a simple action,” at least ten times.

Exceptions cover real-time events, essential limits, and limits over 20 hours. The W3C’s essential example is a ticket hold of two minutes. For a conference, collect attendee details before the seat hold starts.

Multi-step payment forms

The tutorial’s multi-page forms guidance fits donation and registration flows:

  1. Put the step first in the page title, such as “Step 2 of 4: Payment,” and repeat it in the heading.
  2. Show progress as an ordered list, with hidden text marking completed and current steps.
  3. Keep entered data when people go back.
  4. Offer a review step before payment, which also meets 3.3.4.

Our keyboard accessibility test includes the donation flow in its 15-minute check.

Embedded payment and AMS forms in iframes

Many accessible forms problems sit in code you do not control. Card fields from a payment processor, or a join form from an AMS vendor, often load in an iframe. The complete processes rule still applies.

Give each iframe a title attribute that names its content, such as "Card payment." That is technique H64. Then test what is inside: labels, errors, focus and timeouts.

Ask vendors for a current Accessibility Conformance Report. WooCommerce’s report for Stripe for WooCommerce, dated July 21, 2026, notes that "many parts of the extension are controlled by Stripe, not WooCommerce." It lists partial support for labels and error announcements in Stripe Link, and says turning Link off would resolve most issues.

If a vendor will not fix a failure, WCAG allows a statement of partial conformance for third-party content. It is still a statement of non-conformance.

Accessible forms in WordPress form plugins

WordPress’s coding standards expect WCAG 2.2 AA, but most forms come from plugins. Gravity Forms says it aims "to comply to WCAG 2.1 AA." Its accessibility statement adds that "The site owner is always responsible for the accessibility of the forms on a website."

Its accessibility checklist gives settings that suit most form plugins:

  • Labels on top and always visible, with validation messages above the inputs.
  • Validation summary and required field indicator turned on.
  • Autocomplete enabled; no input masks or multiselect fields.
  • reCAPTCHA v2 avoided, with the honeypot as the alternative.

Accessible forms can break on update, so re-test after every plugin or theme update. Form plugins are also security targets, as the Gravity Forms file upload flaw showed.

Accessible forms in Drupal Webform

Drupal core targets WCAG 2.2 AA, according to its accessibility page. Most association forms run on the contributed Webform module, whose project page says it "is committed to being accessible to everyone."

  • Turn on Inline Form Errors. It ships with core, off by default, and places error messages next to their fields.
  • Use composite elements and fieldsets for name, address and choice groups.
  • Test the wizard progress bar on multi-page forms with a screen reader.
  • Test custom themes. Contributed modules and themes skip core’s accessibility review.
Drupal 10 reaches end of life on December 9, 2026. The Webform project page says the 6.2 line gets security support only until then. Fix form templates on the Drupal 11 site you are moving to.

See what Drupal 10 end of life means for your site and the Drupal Webform advisories in plain language.

Frequently Asked Questions

What are accessible forms?

Accessible forms give every field a label tied to it in code, describe errors in text with a fix, and work by keyboard and screen reader.

Is placeholder text enough as a label?

No. It disappears when someone starts typing. Use a visible label element tied to the field.

Do we need autocomplete attributes on every field?

Only on fields about the person filling in the form that match a listed input purpose. Fields about a gift recipient are out of scope.

Does a CAPTCHA on a donation form fail WCAG?

Not automatically. 1.1.1 requires a text description and an alternative for a different sense. The W3C prefers checks that ask nothing of the user, such as honeypots.

Does Accessible Authentication apply to registration forms?

No. 3.3.8 covers logging in, not creating an account. A renewal that starts with a login is covered.

Are we responsible for a vendor’s embedded payment form?

For conformance, yes. WCAG judges the whole process. Ask the vendor for an Accessibility Conformance Report and test the form yourself.

How long must a timeout warning give people?

At least 20 seconds to extend with a simple action, allowed at least ten times. Turning the limit off or adjusting it also passes.

Does Drupal turn on inline form errors by default?

No. The Inline Form Errors module ships with core but is off by default. Turn it on and test your Webforms.

Digital Matters

Web Design Desk