Custom Web Forms That Help Users Fix Errors
Use a delivery booking form to test field-level errors, retain valid entries and measure successful corrections. See how AI can group recurring problems for review.
Published by Mentrix Digital · · Updated

Key points
- An error message must say in text which field is wrong and how, both under the field and in a summary that links to it. A red border alone is not enough.
- When a submission fails, every value entered stays in place, including the wrong ones, so staff fix only what is wrong instead of retyping the whole form.
- Measure correction rate and time with a clearly stated denominator. AI can cluster error types from logs that hold no customer data, while people edit the wording and approve it before release.
The form rejects the booking but never says why
A fictional building-supplies company runs an internal website where sales staff book delivery trucks for customers. The form asks for the sales order number, the range of dates the customer can receive goods (start and end), the destination, the recipient's name and phone, approximate weight, and a note for the driver. One day a staff member enters a delivery range of “28 Nov to 25 Nov” and forgets to choose a destination. The old system draws red borders around both fields, shows one line at the top saying “Invalid data”, and clears the date fields. The staff member has to guess what went wrong, and some give up on the form and send the details by chat for the dispatch team to key in. This is a hypothetical scenario, not client work.
WCAG 2.2 Success Criterion 3.3.1 Error Identification and the W3C Understanding Error Identification page (https://www.w3.org/WAI/WCAG22/Understanding/error-identification.html) require that when an input error is automatically detected, the item in error is identified and the error is described to the user in text. The aim is that users know an error has occurred and can tell what is wrong, so re-displaying the form with fields highlighted is not enough for some users, such as people who have trouble telling colours apart or who use a screen reader. Suggesting how to fix the error is a separate criterion, 3.3.3 Error Suggestion, which the spec in this article also applies where the correct fix is known.
This is different from a review screen before a binding confirmation, which shows complete data before a commitment, and from saving a draft to finish later. This article covers the moment the system has already rejected the input: does the staff member know what to fix, and can they finish in the same attempt?
If your process needs users to check complete data before a binding commitment, see the review-before-submit guide →
Inline and summary text for the two sample errors
Write the actual text into the developer spec instead of “show a validation message”. Each message names the field by its visible label, says what is wrong and says how to fix it where that is known. For the fictional delivery booking form:
- Under the end date: “End date must be on or after the start date (28 Nov). You entered 25 Nov.” Stating both the rule and the entered value lets staff see at once whether they swapped the dates or typed the wrong month.
- Under the destination: “No destination chosen. Pick one of the customer's addresses from the sales order, or enter a new address.” Avoid a bare “Required”, which does not say what to do next.
- Summary above the form: the heading “Truck not booked yet: 2 fields need fixing”, followed by “Delivery dates: end date is before start date” and “Destination: not chosen”. Each item is a link that moves focus straight to its field.
- When submission fails, move focus to the summary so keyboard and screen reader users learn at once how many errors there are. Mark each field in error as invalid for assistive technology, and associate its inline message with the field so it is announced when focus enters.
- Always pair red with an icon and the words “Needs fixing”. When a field is corrected, remove it from the summary and update the count of fields left.
If you need a custom website with per-field error messages and a linked summary built to this spec, see Websites & Landing Pages →
Continue with the worked example. How should a quote form recover when a file upload fails? →
What must be kept, and the server-side rules
In this example, the main reason staff abandon the form is not the wording but lost data. When submission fails, every field keeps its value: sales order number, recipient name and phone, weight and the driver note, and the wrong values too. The dates 28 Nov and 25 Nov must still be shown, because if they are cleared, staff cannot see what they entered and may repeat the mistake. Attachments such as a site map stay linked to the booking without a fresh upload.
Browser checks give fast feedback, but the server must run the same rules again every time and return errors as a rule code and field name, so the page shows the same messages wherever the error was found. When the server finds problems the browser cannot, such as a destination outside the delivery area or no trucks free in that range, it must also name the field and describe the problem in text rather than return a generic error page. After the fix, booking again must create exactly one booking.
- Submit 28–25 Nov with no destination: the summary lists 2 items, focus is on the summary and every field keeps its value.
- Follow a summary link: focus lands on the right field, and a screen reader announces its inline message.
- Disable browser checks and resubmit the same data: the server rejects it and the page shows the same messages.
- Destination outside the delivery area: the message names the destination field and says which areas are served, not a generic error page.
- Fix everything and click book twice: one booking exists, and untouched fields match what was first entered.
If the system accepts the data but keeps processing in the background for minutes, announcing status without moving focus is covered in the accessible background job status guide →
Measure whether staff can fix errors: rate, time and denominator
Agree the definitions before collecting data. The denominator is “booking attempts where at least one field failed validation”, counted per booking attempt rather than per error, excluding test accounts. The numerator is attempts where staff fixed every error and booked successfully within 15 minutes without restarting the form. Time is measured from when the first error message appears to the successful booking, and reported as a median, because staff sometimes stop to take a call and skew the average. Attempts where staff gave up and sent the details by chat count as not corrected.
The following figures are a hypothetical example to show the calculation, not results from a real system. Suppose a trial period has 40 booking attempts with errors, and 34 are fixed and booked. The correction rate is 34 ÷ 40 = 85%, and the median correction time is 48 seconds. Split by type, the reversed date range appears in 22 attempts with 21 corrected, and the missing destination in 24 attempts with 19 corrected (some attempts had both, so the per-type counts add up to more than 40). These figures point to the destination field's message and options as the first thing to examine; they do not prove the form is fine, and a sample this small is only an early signal. When comparing before and after a wording change, count with the same definitions.
If you want validation events logged and a correction-rate report built from your existing system, see Automation & Business Software →
AI clusters anonymised error types; people edit and approve the wording
The error log keeps only what analysis needs: field name, rule code, time, whether the error was fixed and how long it took. It does not store entered values such as addresses, names or recipient phone numbers, and uses a random booking-attempt ID instead of the staff member's name. Each week, AI reads the log to cluster recurring patterns, such as start and end dates often swapped when a booking crosses a month, or the destination often left empty when a sales order has several addresses, then drafts wording or option changes with its reasoning.
AI never changes the website text or validation rules itself. The form owner, such as the dispatch lead, reads the proposed clusters, checks them against the logged figures, edits the wording into the language the team actually uses in Thai and English, and records the approval with a date. Approved changes pass the test cases above before release, and the correction rate is then tracked with the same definitions. If AI groups errors wrongly or proposes something the figures do not support, the reviewer rejects it and records why. If the AI service is down, the form and logging work as normal, because AI sits outside the booking path.
If you want AI to summarise error clusters from anonymised logs, with a step for people to edit and approve, see Custom AI Solutions for Business →


