Skip to content
easeweb
Search topics

Form field help only on a help page or on hover

A returns form asks for an order number and doesn't say where to find it: the answer is in the help centre, or in a ? that only a mouse pointer can open.

WCAG 2.2
SC 3.3.5AAA
Required by
Not required by Section 508 or EN 301 549
Broken
The accessibility problem illustrated: Cognitive:Where do I find my order number?
01

The problem

People who don't know where their order number is have to leave the form to find out, and keyboard and screen reader users never get the help a mouse pointer can open.

02

Try it

Return a scarf: find out where its order number is, without leaving the form.

  • Broken 1: nothing beside the field says where the order number is. Type your email, find the answer through Help in the header, then come back with the answer’s Start a return link. What happened to your email?

  • Broken 2: rest the mouse pointer on the ? to read the answer. Then put the mouse aside and Tab through the form: does focus ever stop on the ?, and what does a screen reader hear on the field?

  • Apply a fix. Look for the answer again, with the mouse and then with Tab alone: is it beside the field, and what does a screen reader hear?

Broken Can you fix this?

Start a return

Screen reader says:

(Tab to a field)

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Put the help beside the field it is for.

Before

The help only in the help centre

<header>  <a href="/">Hollis</a>  <a href="/help">Help</a></header><main>  <h1>Start a return</h1>  <form method="post" action="/returns">    <label for="order">Order number</label>    <input id="order" name="order" type="text">     <label for="email">Email used for the order</label>    <input id="email" name="email" type="email" autocomplete="email">     <button type="submit">Find my order</button>  </form></main>
What is wrong3 points
  • Nothing beside Order number says where to find it or what one looks like.
  • The only help is the Help link in the header, which opens the help centre's front page.
  • Reading the answer there means leaving the form.
After

A hint under the label

<header>  <a href="/">Hollis</a>  <a href="/help">Help</a></header><main>  <h1>Start a return</h1>  <form method="post" action="/returns">    <label for="order">Order number</label>    <p id="order-hint" class="hint">It's in the subject line of your order confirmation email, and on your packing slip, for example HL-482130.</p>    <input id="order" name="order" type="text" aria-describedby="order-hint">     <label for="email">Email used for the order</label>    <input id="email" name="email" type="email" autocomplete="email">     <button type="submit">Find my order</button>  </form></main>
How it is fixed3 steps
  1. Print the help under the label, in the words of the help centre's answer: where the number is, and what one looks like.
  2. Tie it to the field with aria-describedby, so a screen reader reads it after the field's name and role.
  3. Take out the ?, if there was one: the help is on screen for everyone now.

This fixes both Befores and passes 3.3.5. The hint is in the shop's grey, #4a5560, at 7.61:1 on white. Keep it to a line or two: a screen reader reads all of it each time focus lands on the field.

04

Design ideas

Help can sit quietly beside a field, as long as everyone can reach it.

Four more ways to draw the help for the order number. Try each with the mouse, then with Tab and the keyboard alone: two keep the help in reach, and two take it away just when it is needed.

In the design file

  • Write the help under each field that needs it, in the words people will read, saying where the value is and what it looks like.
  • If the help sits behind a button, draw the button’s focus ring, and the help open, pushing the field down rather than covering it.
  • Draw the help on a 390-pixel phone screen, under its field, not in a column beside the form.
  • Write the help text’s contrast beside it, 4.5:1 or more against its background, such as 7.61:1 for the grey on white.

Passes

  • Look for it in the subject line of your order confirmation email:

    Hollis Your order HL-482130 is confirmed

    A drawing of where the number is A line drawn like the email itself, the sender in bold and the number on a soft yellow highlight (12.65:1), shows what to look for in the inbox. The sentence above it says the same, in #4a5560 at 7.61:1, so the drawing is never the only way to the answer.
  • A ? that opens the help in place The round ? keeps the label line clean, but it is a button: Tab stops on it, and Enter or a click opens the help under the label, on the cream #f6f1ea at 6.77:1, pushing the field down instead of covering it. A second press, or Escape, closes it again.

Fails

  • The help as the placeholderWCAG 3.3.5 Grey words inside the box look tidy and say the right thing, but they are gone at the first key press, just when people check what they typed against the example.
  • Need a hand? Visit our Help Centre →

    A friendly card that links to the help centreWCAG 3.3.5 A warm card with a life ring looks helpful, but its link opens the help centre’s front page, where the answer is a search away and the form is left behind. It is help with the site, not with this field.
05

Verify the fix

4 checks, no mouse.

Test with: Keyboard, Screen reader, Zoom

0 of 4 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat when fields are added, and when what people are asked for, such as the order number's format, changes.

How screen readers handle aria-describedby

Limits

This is a starting pattern, not a guarantee for every application. 3.3.5 is level AAA, beyond the A and AA levels that EN 301 549 and Section 508 require, but W3C's Understanding page names the people such help serves: people with writing, reading and intellectual disabilities, and older people who find typing hard. This guide covers help with one field: not the label itself (vague form labels that don't say what to enter), not how a tooltip behaves once it opens (tooltips that vanish on approach and can't be dismissed), and not where the site's help link sits from page to page (help links that move from page to page). Which fields need help depends on the people who fill in the form and what they have to hand, so test it with them.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service