New Tool Radar

AI Design Workflows

How to Check Form Labels in an AI-Designed Form

Check every field in an AI-designed form has a visible label that stays visible and says what to enter, before anyone has to guess.

Schematic diagram: three steps to check form labels — list every field, find its label, fix the gaps — with a practice result of 3 of 5 fields passing and 2 failing.

Check every field in an AI-designed form has a visible label that stays visible and says what to enter. Walk the form field by field, write down the label each field shows, and note whether the label is still there once the reader starts typing.

A form without labels makes readers guess. The W3C page for this rule states its intent plainly: labels or instructions identify the purpose of fields and controls that expect user input, so that users will know what sort of value or input to provide. The same page adds that when labels are provided, they need to be persistently available to users, and that in many cases the best way to do this is to make them visually persistent as part of the interface.

Schematic diagram: three steps to check form labels — list every field, find its label, fix the gaps — with a practice result of 3 of 5 fields passing and 2 failing.

What counts as passing

The W3C rule, Success Criterion 3.3.2 Labels or Instructions, states that labels or instructions are provided when content requires user input. It applies to all form fields, whether they are required or optional, and it covers radio buttons, checkboxes, and similar controls too: each choice needs a label so that readers know what they might be selecting.

Two details from the same page shape this check. First, labels and instructions may also specify the format for data entry, especially if the format is out of the customary formats or there are specific rules for correct input. Second, a label that only appears while a field is empty is not a persistent label: the page says labels need to be persistently available, and the best way is usually to keep them visible as part of the interface.

The practice design and the check table

Use a fictional order form for the exercise. The fictional brand is Maple Corner, a small cafe at 12 Maple Lane that does not exist. Its order form has five fields: full name, email address, date of birth, phone number, and a pickup time choice. Nothing in the table comes from a real client form.

How the table was worked out

Each field was judged on two things only: whether a visible label names the field, and whether the expected format is shown where the field needs one. A field with a visible label and no unusual format passes. A field whose only cue is placeholder text fails, because no label stays visible.

Field Label shown Format or instruction shown Result
Full name “Full name” above the field None needed Pass — visible label names the field.
Email address “Email address” above the field “[email protected]” under the field Pass — label plus the expected format.
Date of birth No label; placeholder “DD/MM/YYYY” only Placeholder only Fail — placeholder is the only cue and no label stays visible.
Phone number “Phone” above the field None, but the field only accepts 10 digits Fail — label present but no format given for a field with a strict format.
Pickup time (Morning / Afternoon / Evening) “Pickup time” above the group; each choice labelled None needed Pass — group label plus a label on each choice.

Read the table row by row. Three fields pass and two fail. The date of birth field fails because its only cue is placeholder text, with no label that stays visible. The phone field fails for a different reason: it has a label, but the field only accepts 10 digits and nothing on the form says so.

How to fix a failing row

Add a visible label above every field

Put the label outside the field, above it, so it stays visible while the reader types. In the practice table, the date of birth field needs a “Date of birth” label above the field, with the placeholder kept only as a format hint.

Write the format under fields with strict formats

Where a field only accepts one shape of input, write that shape under the field. In the practice table, the phone field needs “10 digits, no spaces” under it, so the reader knows the rule before typing.

Label every choice in a group

For radio buttons and checkboxes, label each choice as well as the group. The pickup time group in the practice table passes because “Morning”, “Afternoon”, and “Evening” are each labelled, not just the group.

Limits

The check covers only the visible labels on this one practice form. It does not cover whether the labels are marked up in code, which the W3C covers under a separate criterion, and it does not cover the names screen readers announce for the fields. A field can pass this visible-label check and still need code work. Expected result. We checked the W3C Understanding page for Success Criterion 3.3.2. We did not run a form or a screen reader on the Maple Corner order form.

Sources

  • W3C, Understanding Success Criterion 3.3.2: Labels or Instructions — https://w3c.github.io/wcag/understanding/labels-or-instructions.html — states that labels or instructions are provided when content requires user input, that labels need to be persistently available, that formats should be specified where they are unusual, and that each choice in a group needs a label.
See all