For AI agents and LLMs: a machine-readable index is available at llms.txt. A plain-Markdown version of any documentation page is available by appending .md to its URL.
Skip to main content

Forms Guided Test

A form that a screen reader or keyboard user cannot complete locks people out. Every field needs a clear label, related fields need a shared group label, required fields must be marked, and errors must be explained in text.

The Forms test finds the fields, the field groups, and the error behaviour on the page. It does the automatic checks first, and then asks you to confirm the parts that need a person, such as whether a label describes what to enter and how the form behaves when you submit it.

When to use this​

Use this test on sign-up, login, checkout, search, and contact forms, and on any form with legal or financial effect.

Prerequisites​

The TestMu AI Accessibility Toolkit is installed. See Install Toolkit.

What the test checks​

RuleWCAGSeverity
Form field has no label4.1.2 (A)Critical
Label is not persistent: placeholder is the only visual label3.3.2 (A)Serious
Label is associated with a non-labelable element1.3.1 (A)Serious
Programmatic label and visible label do not convey consistent information2.5.3 (A)Serious
Aria-required has an invalid value4.1.2 (A)Moderate
Field looks required but is not marked required1.3.1 (A)Serious
Required field has no visible required indicator3.3.2 (A)Moderate
Autocomplete attribute has an invalid value1.3.5 (AA)Serious
Field collecting personal data has no autocomplete attribute1.3.5 (AA)Minor
The programmatic label does not convey the purpose of the control2.4.6 (AA)Serious
Required field is not clearly indicated3.3.2 (A)Serious
Related fields are not grouped with a group label1.3.1 (A)Serious
Field group has no label1.3.1 (A)Serious
Group role has no accessible name1.3.1 (A)Serious
Group name does not describe its fields2.4.6 (AA)Moderate
Aria-describedby points at a missing element4.1.2 (A)Serious
Aria-errormessage points at a missing element4.1.2 (A)Serious
Field is marked invalid but no error message is associated3.3.1 (A)Serious
Browser reports the field invalid but aria-invalid is not set4.1.2 (A)Moderate
No error is shown when a required field is left empty3.3.1 (A)Serious
No error is shown for invalid data3.3.1 (A)Serious
Error message does not explain how to fix the field3.3.3 (AA)Moderate
User cannot review and confirm the transaction before committing it, and the action is not reversible3.3.4 (AA)Serious

The report includes only the rules that fall within the WCAG version and level you set in DevTools Settings.

Run the test​

Start the test​

Open Assisted Tests in Accessibility DevTools and select Forms. Turn on Verify with AI if you want AI to give the first answers. See Start a guided test.

Choose the forms to test​

Pick which forms on the page the test should cover.

Review fields​

The test checks that:

  • Every field has a label.
  • The label is persistent and not a placeholder only.
  • The visible label matches the accessible name.
  • Required state is both shown and marked.
  • Fields that collect personal data use a valid autocomplete value.

Confirm whether the label of each field describes its purpose.

Review groups​

The test checks that related fields, for example a set of radio buttons, are wrapped in a group with a label. Confirm whether the name of each group describes its fields.

Check error handling​

The test checks that an invalid field has an associated message, that a required field left empty shows an error, that invalid data shows an error, and that the message explains how to fix the problem. For forms with legal or financial effect, it checks that the action can be reviewed, corrected, or reversed.

Submit the form in different ways and confirm what happens.

warning

Submitting a form runs its real action. Test on a staging environment or with test data if the form creates an order, sends a message, or changes an account.

Finish the test​

Finish the test to generate the report. Your progress is saved, so you can close the panel and continue later.

How AI helps​

With Verify with AI on, AI gives the first answer to these questions:

  • Does each field's label describe what to enter?
  • Does each group's name describe the fields it holds?

You can change any answer before you finish.

AI credits

Verify with AI will require AI credits. See Credits Management.

Terminal First Testing With Kane CLI

Natural language browser & mobile app tests right from terminal.

×
Schedule Your Personal Demo
Kane CLI terminal

Help and Support

Related Articles