First decide what went wrong
An error summary is useful only if the business can say what the customer can correct. W3C's WCAG 2.2 explanation of Error Identification says that when an input error is automatically detected, identify the item and describe the error in text. A missing required contact number, an impossible date, and a file exceeding an announced limit are candidate input errors. A server outage, an unavailable appointment slot, or a staff eligibility decision may require a different message and path. GOV.UK's validation pattern specifically separates unusable input from questions of eligibility or permission. Write down each rule in terms a customer can act on before designing a red border or a warning icon. For example, decide whether a phone field genuinely requires a local mobile number, or can accept an office line and international prefix. If either is acceptable, do not reject the customer because the typed format differs from one narrow example. If the business cannot justify a restriction, remove the restriction. Validate the authoritative rule on submission as well as any client hint; a successful visual check in the browser must not become the only safeguard for business data.
Keep answers while asking for a correction
After an unsuccessful submission, show the form again with the customer's entered answers still present wherever doing so is appropriate and secure. GOV.UK's recovery pattern says preserving answers helps people see what went wrong, edit the earlier value and avoid repeating work. Do not wipe an entire enquiry because one date is invalid. Preserve the selected language, the chosen service and conditional fields that were relevant when the customer submitted. If a file upload cannot be retained safely across requests, explain that the file must be chosen again and keep the other fields; never display a filename as if the file remains attached when it does not. Keep server-side and client-side rules aligned so the same answer is not accepted on one attempt and rejected on the next without explanation. When a session or stock state has changed, show the new condition clearly rather than pretending it was a typo. Retention also needs privacy judgement: do not automatically echo secrets, payment card data or sensitive free-text content into an error page that could be viewed on a shared device. Test the real back-and-forth journey, not merely the first invalid submit.
Make the summary a route to each error
Place a clear error summary near the start of the main content after a failed attempt. GOV.UK's design system uses an error summary together with a message next to every answer that contains an error. Its component guidance moves keyboard focus to the summary, links each summary item to the relevant input, and keeps the summary wording the same as the nearby message. That is a reusable design pattern, not a claim that every Hong Kong website must copy GOV.UK's exact styling. A summary with three identical links saying 'Invalid input' forces the customer to guess. Prefer 'Enter a contact email', 'Choose a date after today', or another instruction that identifies the field and the repair. Link to the actual control, or the first erroneous control in a grouped answer, so keyboard users arrive where they can act. The heading should signal that the submission needs attention. If a client-side application replaces the form without a full page reload, ensure the new summary can receive focus and that the focus move occurs after it exists in the page. Do not rely on a visual scroll alone to prove the keyboard path works.
Describe the field error in text
Use a nearby text message as well as the summary. W3C explains that a failed submission cannot simply redisplay the form without telling the user what failed; colour alone is not a text description. The message should distinguish missing data, wrong format and a value outside an allowed range. If a booking form needs a date in the future, 'Choose a future appointment date' gives more direction than 'Invalid date'. If a name permits apostrophes and Chinese characters, the validation and wording must reflect that; do not silently narrow accepted names to a developer's sample. GOV.UK's error-message component shows an example where the input's accessible description refers to its error text. In an implementation, connect the message to the relevant field so assistive technology can read it in context, and keep the visible label intact. A border and icon may reinforce the message but should not carry the whole meaning. Avoid a blanket instruction to 'contact support' for a typo the customer can fix themselves. Conversely, when the service really cannot complete the request, do not mislabel a system failure as a user error. Give a truthful next action and preserve a route back to the form.
Write and check both language paths
For a bilingual Hong Kong form, write each error as a real instruction in the language the customer selected. Do not translate only the summary heading while leaving field messages, upload limits or button labels in the other language. Keep the same underlying validation rule in English and Traditional Chinese, but write natural wording for each. For example, an English message may say 'Enter an email address we can reply to'; its Chinese counterpart can directly ask for a usable reply address without imitating English word order. If a field permits an international telephone number, both editions must say so. If the customer switches language on the error page, retain their answers and keep each summary link attached to the same field. Check the page title and error state in both languages too; GOV.UK's pattern recommends beginning the page title with an error cue on a failed submission. Avoid machine-generated error codes as the only explanation. Where a restriction is business-specific, publish it before entry if possible, then repeat the precise rule in the error. Test with a real long Chinese message at narrow widths and with zoom, because a tidy short English sample will not expose overflow or clipped links.
Rehearse an enquiry form from failure to success
Suppose a repair-service enquiry asks for a contact email, a preferred visit date and a description. A customer writes a useful description, leaves email blank and enters yesterday's date. On submit, the system returns the same description and date, shows a summary with two distinct links, and places matching messages at the email and date fields. The summary receives focus; activating its first link moves to email, and the next Tab follows the form's expected sequence. The customer adds an address and a future date, resubmits and sees a real success state. This is a test scenario, not an observed business result. Repeat it with keyboard only, a screen reader, touch, English and Traditional Chinese. Include a server-side rejection even if client checks passed, and an upload that must be chosen again. Confirm there is no phantom attachment, no lost long description, and no contradictory rule between languages. Record the exact failed step and repair it; a screenshot of a red outline cannot establish that the journey works. If a changed appointment slot is the real issue, test the alternative slot message separately from input validation. The operational acceptance test is simple: a person can understand the problem, reach the control, keep valid work and finish the task.
Make the acceptance record specific enough to expose regressions. For each rule, keep a valid example, an invalid example, the expected summary wording, the field message, and the value that should remain after submission. Include a customer who corrects one of several errors while another remains; the next response should remove the resolved item from the summary without discarding the repaired answer. Also check what happens when the user presses the browser Back button after a failed attempt. If the form is a live service, make the record part of its ordinary release review whenever fields or rules change. The point is to prove that a person can recover from a real error state, not merely that a design mockup contains an error component.
Before you proceed
- Can the customer tell which fields failed and how to repair each one?
- Do summary links, nearby messages and keyboard focus reach the same fields?
- Are valid answers retained and are both languages governed by the same rules?


