How to Test Forms for Accessibility
Forms are one of the most important interactive parts of a website.
Users rely on them to:
- create accounts;
- log in;
- contact businesses;
- subscribe;
- search;
- complete checkout;
- enter payment information.
If a form is inaccessible, users may be unable to complete the website’s primary purpose.
Accessibility QA therefore needs to check more than whether:
The form submits successfully.
A form should also be:
- understandable;
- keyboard accessible;
- easy to navigate;
- clear when errors occur;
- usable with zoom and mobile devices;
- compatible with assistive technology.
The most useful way to test form accessibility is to treat the form as a complete workflow:
Understand → Navigate → Enter Data → Validate → Correct → Submit → Confirm
For the broader accessibility framework, see Website Accessibility Testing Checklist.
Start With the Purpose of the Form
Before testing individual fields, understand what the form is supposed to accomplish.
Examples include:
- Contact Form
- Signup Form
- Login Form
- Checkout Form
- Search Form
The more important the workflow, the more carefully accessibility should be tested.
For example:
A checkout form that cannot be completed with a keyboard may prevent a customer from purchasing entirely.
A low-traffic optional feedback form may receive lighter coverage.
This is why accessibility testing should still follow business risk.
For broader prioritization, see Risk-Based Testing.
1. Test Labels and Instructions
Users need to understand what information belongs in every form field.
A strong form should make that clear before the user starts entering data.
Check Every Important Field Has a Clear Label
Examples:
First Name
Email Address
Password
Billing Address
The label should clearly describe the field’s purpose.
Avoid vague labels such as:
Enter Value
Information
Text
Better labels reduce confusion and make the form easier to understand for everyone.
Do Not Use Placeholder Text as the Only Label
Placeholder text often disappears when users begin typing.
For example:
Enter your email
may initially explain a field.
But after entering:
john@example.com
the instruction disappears.
A persistent label provides better context.
QA should therefore verify that important controls have meaningful labels independent of placeholder content.
Check Label and Field Association
A visible label may look correct while the underlying form field is not programmatically associated with it.
This can create problems for assistive technologies.
QA should verify that:
- the field has a meaningful accessible name;
- clicking or selecting the label activates the associated field where appropriate.
Automated accessibility tools can identify some missing associations, but manual review remains useful.
Check Required Fields
Users should be able to identify required fields clearly.
Do not rely only on color.
Examples:
Email Address (required)
or:
Email Address *
if the meaning of the asterisk is clearly explained.
Users should not need to guess which fields are mandatory.
Do Not Communicate Required Status Only With Color
Suppose:
- required labels are red;
- optional labels are gray.
If color is the only difference, some users may miss the meaning.
Use additional information such as:
- text;
- symbol;
- explicit wording.
Color can reinforce meaning, but it should not carry the entire message.
Provide Instructions Before Users Fail
Some fields need more explanation than a label can provide.
Examples include:
- password requirements;
- file restrictions;
- date formats;
- account-number formats.
Important instructions should be available before the user submits invalid data.
For example:
Password must contain at least 8 characters, one number, and one uppercase letter.
is better than revealing each requirement only after failed submissions.
Avoid Instructions Based Only on Position
Weak:
Complete the field on the right.
This may become confusing when the responsive layout changes.
Better instructions refer directly to the actual control or field name.
2. Test Keyboard Navigation and Focus
A useful accessibility check is to stop using the mouse completely.
Navigate the form using the keyboard.
For deeper keyboard guidance, see How to Test Keyboard Navigation on a Website.
Reach Every Interactive Control
Using:
- Tab;
- Shift + Tab;
- arrow keys where appropriate;
- Enter;
- Space;
verify that users can reach and operate:
- text inputs;
- checkboxes;
- radio buttons;
- dropdowns;
- buttons;
- links.
A form that requires a mouse is not fully accessible.
Check the Focus Order
Keyboard focus should follow a logical sequence.
Good example:
First Name → Last Name → Email → Message → Submit
Problematic example:
First Name → Footer Link → Submit → Email
The visual layout may look correct while the actual keyboard order is confusing.
For deeper coverage, see How to Test Focus States and Focus Order.
Check Visible Focus
Users need to know which control is currently active.
Verify visible focus on:
- fields;
- buttons;
- checkboxes;
- radio buttons;
- dropdowns;
- custom controls.
An invisible or extremely subtle focus state can make keyboard navigation very difficult.
Test Form Submission Using Only the Keyboard
The full interaction should normally be possible without a mouse:
Navigate → Enter Data → Review → Submit
This is one of the simplest and highest-value form accessibility checks.
3. Test Validation and Error Recovery
Form accessibility problems often appear when something goes wrong.
Do not test only successful submission.
Submit an Empty Form
Leave required fields blank and submit.
Verify that:
- submission is prevented where appropriate;
- invalid fields are clearly identified;
- useful error messages appear.
Weak:
Invalid input.
Better:
Email address is required.
The user should understand exactly what needs correction.
Test Invalid Data
Use representative invalid values such as:
- malformed email;
- invalid date;
- short password;
- unsupported file type.
Error messages should explain the problem clearly.
Weak:
There was an error.
Better:
Enter a valid email address.
or:
Password must contain at least 8 characters.
Connect Errors to the Correct Field
If several fields are invalid, users need to know which message belongs to which control.
Errors should therefore:
- appear in a logical location;
- be associated with the relevant field where appropriate;
- remain understandable when several errors appear simultaneously.
Do Not Use Color Alone for Errors
A red border is not enough.
Example:
Normal Field = Gray Border
Invalid Field = Red Border
If red is the only indicator, some users may not recognize the error.
Add:
- clear error text;
- icon where useful;
- another explicit indicator.
Test Focus After Validation
This is frequently overlooked.
Example:
- Leave required fields empty.
- Submit.
- Errors appear.
Now ask:
Where is keyboard focus?
Depending on the design, focus might move to:
- an error summary;
- the first invalid field.
The exact implementation can vary.
The important point is that the user can understand what happened and efficiently reach the problem.
Test Multiple Errors
Submit a form containing several invalid fields.
Check whether the user can understand:
- how many errors exist;
- where they are;
- how to fix them.
Large or complex forms may benefit from an error summary near the beginning.
Preserve Valid User Input
After validation fails, corrected or already valid data should not be unnecessarily erased.
This is especially important for:
- checkout;
- signup;
- long contact forms.
A user who spends several minutes completing a form should not need to re-enter everything because one field was invalid.
Test Error Recovery
A useful sequence is:
- Submit invalid form.
- Correct one field.
- Submit again.
- Correct remaining issues.
- Submit successfully.
Verify that:
- valid data remains;
- corrected error states disappear;
- remaining errors stay clear;
- successful submission becomes possible.
Accessibility includes making recovery manageable.
4. Test Form Controls
Standard controls often provide useful built-in behavior.
Custom controls deserve extra attention because styling or JavaScript can replace accessibility features accidentally.
Radio Buttons
Verify:
- each option has a clear label;
- keyboard navigation works;
- selected state is visible;
- selected state is understandable without relying only on color.
Test with:
- Tab;
- arrow keys where applicable;
- keyboard activation.
Checkboxes
Verify:
- checkbox and label are properly related;
- keyboard activation works;
- checked state is clear;
- focus is visible.
These are especially important for:
- Terms acceptance;
- marketing consent;
- filters.
Dropdowns and Select Controls
Verify users can:
- reach the control;
- open it;
- move through options;
- select an option.
Custom dropdowns require more testing than native <select> controls.
Do not assume visually polished custom controls retain native keyboard behavior.
Custom Controls
Custom-styled:
- checkboxes;
- radio buttons;
- dropdowns;
- date pickers
may look good while failing:
- keyboard navigation;
- focus;
- accessible naming;
- selected-state communication.
Give custom components additional QA attention.
Buttons
Button labels should describe the action clearly.
Better:
Create Account
Send Message
Complete Purchase
Less useful:
Click Here
or:
Continue
when the meaning is unclear from context.
Disabled Buttons
If Submit remains disabled until certain requirements are met, users should understand why.
A permanently disabled-looking button with no explanation can create a dead end.
Test:
- what activates the button;
- whether the required action is understandable;
- whether keyboard users can determine what is missing.
5. Test Visual Accessibility
Form accessibility also includes readability and visual clarity.
For detailed contrast testing, see Website Color Contrast Testing.
Check Contrast
Review contrast for:
- labels;
- entered text;
- placeholder text;
- instructions;
- validation messages;
- button text;
- focus indicators.
Form designs often use subtle gray text that may become difficult to read.
Check Error Contrast
Error messages frequently use red.
Pale red on white can become difficult to read.
Always check the actual foreground/background combination.
Check Placeholder Readability
Placeholder text is often intentionally lighter than normal text.
But if it carries useful information, it should remain readable.
Avoid making placeholder text nearly invisible purely for a minimalist appearance.
Check Input Boundaries
Users should be able to recognize where a field begins and ends.
Very low-contrast borders may make inputs hard to identify, especially when:
- field background;
- page background
are nearly identical.
Test Button States
Check important buttons in different states:
- normal;
- hover;
- focus;
- disabled.
A button can be readable initially but become difficult to understand in another state.
6. Test Autofill and Input Assistance
Modern browsers can reduce user effort by automatically filling stored data.
Representative fields may include:
- name;
- email;
- address;
- telephone.
QA should test important forms with autofill enabled.
This is particularly useful for:
- signup;
- checkout.
Test Autofill Visually
Autofill can expose UI defects.
Check whether:
- labels remain visible;
- autofilled text remains readable;
- validation recognizes autofilled values;
- layout remains correct.
A form that works perfectly with manual typing may fail after browser autofill.
Test Input Formats
Some fields require specific formats.
Examples:
- date;
- phone;
- postal code.
Users should receive useful instructions.
Avoid unnecessarily strict validation if several legitimate formats are acceptable.
7. Test Mobile Form Accessibility
Accessibility problems can change when the layout becomes smaller.
Check whether:
- labels remain visible;
- fields fit the viewport;
- errors remain readable;
- buttons remain reachable;
- form controls do not overlap.
For broader mobile coverage, see Common Mobile Website QA Issues.
Test the Virtual Keyboard
On real mobile devices, the virtual keyboard can cover:
- active field;
- validation messages;
- Submit button.
Important forms should receive representative real-device testing.
Test:
Tap Field → Keyboard Opens → Enter Data → Navigate → Submit
The entire flow should remain usable.
Test Appropriate Mobile Input
Where supported, fields should use input types that make data entry easier.
For example:
- email;
- phone;
- numeric input.
The objective is not only technical correctness but reducing unnecessary interaction difficulty.
8. Test Zoom and Reflow
Users with low vision may enlarge the page significantly.
At higher zoom levels, verify that:
- fields remain usable;
- labels remain clear;
- important controls stay reachable;
- content does not overlap;
- unnecessary horizontal scrolling does not appear.
Responsive layouts can change when zoom causes the page to reflow.
Test Long Labels and Error Messages
Do not test only short content.
Longer labels and validation messages can expose:
- clipping;
- overlap;
- broken layout;
- unreadable responsive states.
This is particularly important on mobile and zoomed layouts.
9. Test Screen Reader Basics
If screen-reader testing is within scope, test representative form controls.
Check whether the control communicates important information such as:
- label;
- control type;
- required status;
- current state;
- error state.
Complex custom forms may require deeper specialist accessibility testing.
Routine QA should avoid pretending that a quick screen-reader check replaces a full accessibility audit.
Automated Accessibility Tools Can Help
Automated tools may identify issues such as:
- missing labels;
- duplicate IDs;
- some contrast failures;
- certain ARIA problems.
They can be valuable for:
- initial screening;
- regression.
But automation cannot fully evaluate the user’s form experience.
Manual Testing Is Still Required
Automated tools may not tell you whether:
- focus order makes sense;
- error messages are understandable;
- form recovery is practical;
- mobile keyboard blocks Submit;
- custom interaction feels usable.
Use automation alongside manual testing.
10. Test Dynamic Forms
Some forms reveal additional fields based on earlier selections.
Example:
Country = United States
reveals:
State
When new fields appear, verify that:
- they appear logically;
- labels are clear;
- keyboard navigation remains logical;
- focus does not jump unexpectedly;
- required status is updated correctly.
Dynamic forms deserve extra accessibility attention because the page changes while users are interacting with it.
Test Conditional Required Fields
A field may become required only after another selection.
For example:
Delivery Method = Courier
may reveal:
Delivery Instructions
If required, the form should communicate that change clearly.
Users should not discover it only after unexplained validation failure.
11. Test Forms Inside Modals
Forms frequently appear inside:
- login dialogs;
- newsletter popups;
- contact modals.
These introduce additional risks.
Check that:
- focus enters the modal;
- background content does not interfere;
- all controls are reachable;
- modal can be closed;
- focus returns appropriately after close.
Forms inside modals combine both form accessibility and focus-management requirements.
12. Test CAPTCHA and Anti-Bot Controls
CAPTCHA can become a major accessibility barrier.
If a form uses anti-bot verification, check that the chosen solution provides an accessible path according to the project requirements.
The user should not become permanently blocked by an interaction they cannot complete.
13. Test Consent and Terms Controls
Forms often include:
- Privacy Policy consent;
- Terms acceptance;
- marketing opt-in.
Verify that:
- checkbox and text are clearly related;
- keyboard operation works;
- consent wording is understandable;
- text is readable;
- important links are accessible.
Do not make important consent information extremely small or low contrast.
14. Test the Complete Submission
Accessibility QA should not stop at the Submit button.
The user also needs to understand what happened afterward.
Successful Submission
Verify that a clear success state appears.
Examples:
Your message has been sent.
or:
Account created successfully.
The user should not need to guess whether the action worked.
Check Focus After Success
If the success message appears elsewhere on the page, keyboard or screen-reader users may not notice it.
Test whether the new successful state is communicated appropriately.
Failed Submission
Server-side or network failures should also be understandable.
The form should not simply remain unchanged after Submit.
If submission fails, users should receive useful feedback and retain their input where practical.
15. Prioritize High-Value Forms
Not every form needs the same testing depth.
Highest-priority forms often include:
- checkout;
- login;
- signup;
- password recovery;
- lead generation;
- payment.
These directly affect:
- revenue;
- access;
- conversion;
- critical workflows.
Checkout Forms
Checkout combines:
- customer details;
- address;
- shipping;
- payment.
An accessibility failure at any stage can block a purchase.
For broader functional coverage, see How to Test an E-commerce Checkout Flow.
Login and Signup Forms
Authentication forms are another high-priority area.
Check:
- labels;
- password input;
- validation;
- error recovery;
- password reset link.
For broader functional coverage, see How to Test Login, Signup and Password Reset Flows.
WordPress Forms
WordPress websites may use forms created by plugins or page builders.
These should receive the same accessibility checks.
For broader WordPress form QA, see How to Test WordPress Forms, Media and Downloads.
Example Accessibility Bug: Missing Label
Title: Email input has no accessible label
Steps to Reproduce:
- Open the Contact form.
- Navigate to the email field using a screen reader or accessibility inspection tool.
Expected Result:
The field should have an accessible name identifying it as Email Address.
Actual Result:
The control is announced as an unlabeled edit field.
Example Accessibility Bug: Error Uses Only Color
Expected Result:
Invalid fields should provide clear error information.
Actual Result:
The border changes from gray to red, but no text or other indicator explains the error.
Example Accessibility Bug: Submit Cannot Be Reached
Expected Result:
Keyboard users should be able to reach and activate Submit.
Actual Result:
Focus moves from the final input directly to the footer, skipping the Submit button.
Report Accessibility Bugs Clearly
Accessibility issues should be documented like other functional defects.
A useful structure includes:
- environment;
- interaction method;
- steps;
- expected result;
- actual result;
- evidence.
For example:
Expected Result:
Keyboard focus should follow the visual order of the form.
Actual Result:
After Email, focus jumps to the footer before returning to Message.
For broader defect documentation, see Expected Result vs Actual Result.
Form Accessibility QA Checklist
Labels and Instructions
- Every important field has a clear label.
- Placeholder is not the only label.
- Labels have meaningful accessible names.
- Required fields are clearly identified.
- Requirements are not communicated through color alone.
- Input format requirements are explained.
- Instructions appear before errors where practical.
Keyboard and Focus
- All controls are keyboard reachable.
- Focus order is logical.
- Focus indicator is visible.
- Submit works using keyboard.
- Custom controls retain keyboard behavior.
- Focus after validation is useful.
Validation and Recovery
- Empty required fields produce useful errors.
- Invalid values produce specific messages.
- Errors are associated with the relevant field.
- Errors do not depend on color alone.
- Multiple errors remain manageable.
- Valid values are preserved.
- Users can correct and resubmit.
Controls
- Radio buttons have clear labels.
- Checkboxes are usable.
- Dropdowns work with keyboard.
- Custom controls are accessible.
- Button names describe their purpose.
- Disabled states are understandable.
Visual Accessibility
- Labels are readable.
- Input text has sufficient contrast.
- Placeholder text remains readable.
- Errors have sufficient contrast.
- Focus indicators are visible.
- Input boundaries are recognizable.
Mobile and Responsive
- Form remains usable on mobile.
- Virtual keyboard does not block important controls.
- Zoom/reflow works.
- Long labels remain usable.
- Error text does not break the layout.
Submission
- Success state is clear.
- Failed submission is clear.
- Focus after submission is appropriate.
- User input is preserved where practical.
Common Mistake: Testing Only With a Mouse
A form can work perfectly with a mouse while being unusable with a keyboard.
Always include a complete keyboard pass.
Common Mistake: Using Placeholder as the Label
Placeholder text disappears.
Important fields should have persistent labels.
Common Mistake: Showing Errors Only in Red
Color alone is not enough.
Provide explicit text or another clear indicator.
Common Mistake: Testing Only Successful Submission
Many accessibility defects appear during:
- validation;
- failure;
- correction;
- recovery.
Test unsuccessful submissions deliberately.
Common Mistake: Ignoring Focus After Errors
Five validation errors are not useful if the user does not know they appeared.
Check focus and navigation after submission fails.
Common Mistake: Relying Only on Automated Testing
Automated accessibility tools are useful.
They do not replace:
- keyboard testing;
- manual validation testing;
- mobile interaction;
- human evaluation of clarity.
A Practical Form Accessibility Testing Workflow
Step 1 — Understand the Form
Identify:
- business purpose;
- critical fields;
- expected workflow.
Step 2 — Review Labels and Instructions
Make sure every control is understandable before interaction begins.
Step 3 — Navigate With the Keyboard
Test:
- reachability;
- order;
- focus visibility.
Step 4 — Submit an Empty Form
Review required-field validation.
Step 5 — Enter Invalid Data
Check error specificity and association.
Step 6 — Recover From Errors
Correct values and verify that existing valid input remains intact.
Step 7 — Test Custom Controls
Include:
- radio buttons;
- checkboxes;
- dropdowns;
- custom widgets.
Step 8 — Check Visual Accessibility
Review:
- contrast;
- focus;
- input boundaries;
- error states.
Step 9 — Test Mobile and Zoom
Check:
- virtual keyboard;
- reflow;
- long labels;
- responsive states.
Step 10 — Complete the Successful Flow
Verify:
Enter Data → Submit → Clear Confirmation
Build Form Accessibility Into Regression
Important forms should be retested after changes to:
- layout;
- CSS;
- validation;
- JavaScript;
- design-system components;
- form plugins.
A small visual or JavaScript change can accidentally remove:
- focus;
- labels;
- keyboard access;
- contrast;
- error association.
Keep representative form-accessibility scenarios in regression.
Integrate Form Accessibility Into Website QA
A mature process can look like:
Labels → Keyboard → Focus → Validation → Error Recovery → Controls → Mobile → Submission → Regression
For the broader accessibility framework, see WCAG 2.2 Explained for Website QA Teams.
For teams that need reusable accessibility checks, structured website QA workflows, defect tracking, regression and release-readiness management, Qualavo QA Professional provides a broader QA framework.
Final Thoughts
Accessible form testing should verify that users can:
understand the form → navigate it → enter information → recognize errors → correct problems → submit successfully
The highest-priority checks include:
- labels;
- keyboard navigation;
- logical focus;
- required fields;
- validation errors;
- error recovery;
- clear submission feedback.
Then extend coverage to:
- custom controls;
- contrast;
- mobile;
- zoom;
- autofill;
- dynamic fields;
- assistive technology.
The most important principle is:
For forms, accessibility is part of functionality.
If a user cannot identify a field, reach a control, understand an error, recover from a mistake, or complete submission using their available interaction method, the workflow is effectively broken for that user.
That is why form accessibility belongs in normal website QA — especially for critical workflows such as login, signup, lead generation and checkout.
