A label cannot explain every rule

Consider a Hong Kong repair service form with a field labelled “Purchase date”. A customer types 6 November 2026, but the form accepts only a particular numeric format and reveals that restriction after submission. The label identifies the subject, yet it does not tell the customer how to enter it. W3C’s WCAG 2.2 success criterion 3.3.2 requires labels or instructions when content requires user input; its explanation specifically includes format guidance where a field has a restricted or unusual format. The editorial decision is to expose the rule before a customer spends effort, in language that helps them complete the task. This article concerns those format and constraint instructions. It does not replace separate work on marking required fields, identifying autofill purpose or explaining how to correct an error after it has occurred.

Find every hidden constraint

Review the actual acceptance rules rather than writing generic help from the visual design. For each field, ask what the server or staff will accept: date order, separators, maximum length, allowed file types, reference-number pattern, whether spaces are permitted, and whether an example is needed. Include constraints created by downstream staff workflow, not only browser validation. Then remove restrictions that have no business reason. A date picker or tolerant date parser may be easier than making customers memorise punctuation. If a rule remains, express it in words and an example appropriate to the audience. An example is illustrative, not a replacement for explaining a genuinely important constraint. Do not promise that a format is accepted until the live form and its back end have been checked together.

Put the instruction at the point of use

A rule that applies to one field usually belongs next to that field, before the user types or chooses a value. A rule shared by most fields can be explained once at the beginning of the form or group, provided it remains easy to find. W3C technique G184 describes up-front instructions for common restrictions, while G89 describes giving the expected format and an example for a restricted field. These are documented techniques, not exclusive implementation mandates. Decide by the customer’s route: someone arriving directly at a later step may not have read a general introduction on the first page. Keep the essential instruction in the visible interface. A long policy can sit behind a separate link, but the short rule needed to enter a valid value should not be hidden there.

Write rules that survive translation

English and Traditional Chinese editions need independent clarity, not a literal translation of shorthand. “DD/MM/YYYY” may be useful as an example, but the Chinese copy should also state that the day comes first if ambiguity matters. A number that resembles a local phone number is a poor example for a reference field if users might mistake it for an instruction to enter their own phone number. Use a plausible, explicitly fictional example and make sure the validator accepts it. Keep labels, examples and error responses aligned when a rule changes. If a format differs by service or location, do not present one global rule as universal. Test each language’s wrapping and placement, because a longer translated instruction can detach visually from the field it explains.

Make the instruction perceivable with the field

Visible text alone may not be heard when a screen reader user moves directly from control to control in forms mode. The W3C forms tutorial explains that relevant inline instructions should be associated so they are available with the control, for example through suitable label text or a description relationship. This is separate from the minimum wording of success criterion 3.3.2: correct programmatic association also matters under other accessibility requirements. Avoid putting the only instruction in placeholder text that disappears as the person types. If the hint is long, split the short actionable rule from optional detail. Test by focusing the field, listening to the name and description, and checking that the same rule is visually apparent to someone who does not use a screen reader.

Work through a repair request

Suppose the service accepts a purchase date, a product serial number and an optional photo. First ask whether the date can accept ordinary variations; if it cannot, show the exact accepted order before the field and provide a valid example. Next inspect the serial-number rule: if hyphens are ignored, say that they may be included or omitted rather than requiring a needless cleanup. If only some file types can be processed, identify them near the upload control before selection and keep the back-end acceptance list aligned. The same review should cover the Chinese edition, mobile layout and what happens after a saved draft is reopened. If a customer provides a valid value according to the visible instructions but the server rejects it, the product has contradicted itself and needs a rule or copy correction.

Test comprehension and acceptance together

Ask a tester who has not seen the design to read each field before typing and explain what they believe is accepted. Then try a valid example, a common alternative and a clearly invalid value. The aim is not to trick the tester; it is to see whether the rule was visible early enough and whether the system behaves as promised. Repeat with keyboard navigation and a screen reader, and check the narrowest supported layout. Record the wording, the accepted and rejected inputs and the response shown. Avoid making a compliance claim from a single automated scan. A scanner may detect a label but cannot tell whether the field’s hidden server constraint was explained in time or whether the example actually passes validation.

Keep copy and validation in sync

Make the acceptance rule, visible instruction, accessible description and error text part of one change request. A developer changing a validator should notify the content owner before release; a content editor changing an example should verify it against the current validator. Include both languages in review. Where possible, keep machine-readable constraints in a shared configuration, but still review the words a person sees. Track complaints that say “the form will not accept my answer” as possible evidence of a mismatch, not proof that customers are careless. If a constraint is removed, remove the obsolete warning too. The final acceptance question is straightforward: can someone know what to enter before submitting, and will the form accept exactly what its instructions say?

Distinguish guidance from forced formatting

A date field can guide entry without forcing a single punctuation style if the system can reliably interpret common forms. Conversely, an order reference may have a fixed pattern because it must match an existing record. Explain which rule is essential and which is merely a convenient example. Avoid silently altering a customer’s input into a different value, particularly for dates where day and month can be confused. If automatic formatting is used, let the user inspect the result before submission and preserve the original meaning. The same principle applies to phone numbers: a display example should not imply that spaces are forbidden unless the actual service requires that. Reducing unnecessary restrictions is often a stronger fix than adding longer instructions for a brittle validator.

Explain upload limits before file selection

Upload controls deserve the same early explanation as text fields. If the service accepts only certain file types or imposes a size limit, state the actual current conditions adjacent to the control before the customer chooses a file. Do not copy a limit from a design mockup or an old policy document; confirm it with the working intake service. If the browser and server have different limits, reconcile them rather than writing instructions around the mismatch. Where a customer can submit without an attachment, say so clearly. If an attachment is needed for only one kind of request, explain that condition at the point of selection. Test a valid file and an out-of-rule file, then make sure the pre-submission instruction predicts the outcome in both language editions.

Use a small acceptance record

For every constrained field, record the business reason for the restriction, the accepted value or pattern, the English and Chinese instructions, where they appear, and the result of one valid and one invalid test. This record is more useful than a generic statement that the form is “accessible”. It lets a content editor see whether a wording change needs a validator change and lets a developer see whether a validator change needs new copy. Include the form version and test date so an old result is not mistaken for current behavior. A customer support colleague can then use the same rule when helping a person who cannot complete the form. If the team cannot explain why a restriction exists, treat it as a candidate for removal before adding another warning.

Reveal conditional rules at the right moment

Some forms show extra fields only after a customer chooses a service type. The instruction for a conditional field should appear when the field appears, before the customer starts entering it. If the choice changes later, remove obsolete guidance and preserve any still relevant data where practical. Check that a screen reader user is aware of the newly revealed field and can reach its instruction in a sensible order. A rule that applies only to one service must not be presented as a general rule for all customers. For example, a warranty request may need a serial number while a general enquiry does not. Test both paths and the transition between them, including what happens to an invalid draft value after the choice changes.

Before you proceed

  • Each restricted field explains its accepted format before input or submission.
  • Examples actually pass the current validator in both language editions.
  • Visible and accessible instructions convey the same conditions.

Sources & further reading