Put Form Instructions Where the User Needs Them

A form places reference-number instructions immediately above the input field.

Filed under: Accessible communication

A form asks for an invitation reference. The required format appears only after the person submits an entry that the form rejects. The instruction existed, but it arrived after the decision it was supposed to help.

The W3C WAI tutorial on form instructions discusses explaining required input, formats and other relevant information. It also addresses how instructions are associated with controls and why placeholder text does not replace a label. A useful review follows the person’s task, from finding the field to checking an entry.

Explain the actual requirement near the field

Hypothetical example: a workshop enquiry form uses four letters followed by two digits. A visible instruction could read: Invitation reference: four letters, then two digits, for example ABCD12. Find it under “Reference” in your invitation. Keep this guidance beside a clear label while the person enters and checks the code.

Settle how the real form handles spaces and letter case before you write the instruction.

First ask whether the field and constraint are needed at all. A clearer instruction does not justify an unnecessary requirement.

If the reference is optional, make that clear. If it is required for a particular route, explain the condition rather than leaving the person to infer it from a colour or an unexplained symbol.

Keep the instruction available while checking

A faint example inside an empty field may disappear as soon as typing begins. Someone reviewing an entry can then lose the information they need to compare it with the expected format.

Keep a visible label and the necessary guidance available during the task. For the reference example, the person should still be able to find out where the code comes from and what arrangement of characters the form accepts after entering it.

Check the relationship, not just the position

Text placed beside a field may look connected while that relationship is missing for someone using another way to navigate the page. WAI’s tutorial describes associating instructions with the relevant control, including information provided outside its label.

Ask the person responsible for the form to check the implemented relationship in the intended setup. A visual review alone cannot establish what a screen reader presents when focus reaches the field. Nor does adding an instruction prove that every other part of the form works.

Use an error to help repair the entry

If the form rejects an entry, identify the affected field and explain what needs checking in plain language. WAI’s tutorial on user notifications develops this repair step: the message should identify the error and help the person resolve it.

Follow two different entries through the invented form:

  • AB12 has the wrong format. A message could say: “Enter four letters followed by two digits, for example ABCD12. Check the Reference line in your invitation.” This explains the mismatch and points back to the source of the value.
  • ABCD12 has the stated format but is not recognised in this fictional attempt. Repeating “use four letters and two digits” cannot repair that problem. A more useful message would be: “We could not match this invitation reference. Check it against your invitation. If it is the same, use the workshop contact shown with your invitation for help.”

The second route depends on that contact actually existing and being the agreed support route. The example does not establish why the lookup failed: it could be an entry mistake, the wrong invitation or a problem the organiser needs to investigate. Do not ask the user to invent a different code merely to satisfy the form.

In a review of a real implementation, also check what happens to the entered value and the other completed fields. Keeping them available lets the person compare and repair an entry without starting again. The error should remain associated with the affected field and be discoverable in the intended navigation setup. That behaviour needs testing; this wording example has not implemented or tested a form.

Try both entries with the person responsible for validation. After each message, check that the entered text is still there and the user can reach the field. In the lookup case, also check that the workshop contact opens the agreed support route.

Leave a Reply

Your email address will not be published. Required fields are marked *