Customers & growth · Conversion rate optimization
Error prevention & recovery
Best for Early Startup to Startup
Use it when
Customers make errors in your forms or checkout, or lose their work when something fails, and you need to prevent those errors and let them recover fast.
Skip it when
- You have not yet cut and laid out the form's fields. Run Form optimization framework first.
- Shoppers leave checkout over costs, trust or account rules more than input errors. Use Checkout process optimization first, which feeds this one.
- The errors come from your API, CLI or SDK and the readers are developers. Use Error message framework.
- You need every page checked for people who use screen readers, keyboards or zoom. Use Accessibility optimization, which this feeds.
What to apply first and what to use instead are listed below.
Approaches
Validate on submit
Check every field when the customer submits, then show the page again with their answers kept, an error summary at the top and a message beside each field.
- Pro Customers are not interrupted while typing, and it works reliably with screen readers and across browsers.
- Con Customers learn of errors only after finishing, so a long form can return several at once.
Inline validation
Check each field when the customer leaves it or completes its expected length, confirm valid entries and clear each error as soon as it is fixed.
- Pro Customers fix an error while the field is fresh in mind, before they submit.
- Con Checks that fire too early flag fields people have not finished, and the form still needs error handling on submit.
Inputs
- Error logValidation errors by field and failed submissions for the last 30 days, from the form tool, analytics events or server logs.
- Session recordingsRecordings of form and checkout sessions that hit an error in the same window, from your behavior analytics tool.
- Support evidenceTickets and chats about rejected details, failed orders or lost entries in the last 90 days, from the help desk.
- Flow inventoryEvery form, step and costly action in scope, such as payments, deletions and account changes, with its current error messages, from the product team.
- Accessibility targetThe WCAG level to meet, usually WCAG 2.2 level AA, from the accessibility policy.
Steps
- Rank fields and steps by error count and by tickets, and tag each frequent error as a slip, such as a typo, or a mistake, where the customer misunderstood what was asked.
- Prevent slips in the top fields. Accept common formats and strip stray spaces and symbols, block impossible entries such as a return date before departure, and offer suggestions and sensible defaults.
- Prevent mistakes. Use familiar patterns and labels, preview the result of changes that are slow or hard to reverse, and warn while the error is happening, such as a character count near its limit.
- Pick a validation approach, and rewrite each error message to name the field, the problem and the fix in plain words. Keep what the customer typed, and never ask again for details given earlier in the same process.
- Make costly actions recoverable. Let customers review and correct payments, legal commitments and data changes before submitting, or reverse them after. Add undo for deletions, confirm only destructive actions and save progress against timeouts.
- Test the changed flow with customers on the top error paths, then ship it and compare errors per submission, completion and tickets with the baseline.
Output
An error register for one form or flow, with each fix and its result.
- Field or step
- Error type (slip or mistake) and 30-day count
- Prevention change
- Message (field, problem, fix)
- Recovery path (review, undo or saved progress)
- WCAG criterion checked
- Errors per submission and completion, before and after
Done when
- Every field or step in the error log has a count and a slip or mistake tag.
- Every error message names the field and the fix, and the form keeps what the customer typed.
- Every payment, legal commitment or data change can be reviewed before submitting or reversed after.
- No step asks for details the customer already gave in the same process, unless security requires it.
- Errors per submission and completion are logged for windows of the same length before and after.
Measure
Track errors per submission, completion rate and tickets about rejected or lost entries for four weeks after the changes ship, or until a test reaches its planned sample. Compare with your own 30-day baseline on the same traffic. It worked when errors and tickets fall and completion rises, while fraud checks and data quality hold steady.
Hypothetical example
Harbor Lane, a ticket seller, logged 9,400 checkout errors in 30 days. Most were slips. Phone numbers with spaces were rejected, and card expiry dates failed unless typed without a slash. One frequent mistake was buyers picking the wrong event date, because the calendar opened on today's month. Sessions also timed out after ten minutes and emptied the basket. The team accepted any phone format, auto-formatted card fields and opened the calendar on the event's month. They added a review step showing date, seats and total before payment, and a timeout warning with a button to keep the basket. Errors per checkout fell from 0.8 to 0.3 over four weeks, and tickets about wrong dates fell by half.
Common mistakes
- Blaming customers for frequent errors. Treat each one as a design problem and change the field or step.
- Clearing the form after an error. Keep everything the customer typed and mark only the fields to fix.
- Confirming every action. Confirm only destructive ones and offer undo elsewhere, since frequent dialogs get clicked through.
- Flagging fields before customers finish typing. Check when they leave the field or submit.
- Showing errors by color alone. Add text beside the field that names the problem.
Sources
- Preventing User Errors: Avoiding Unconscious Slips · Page Laubheimer, 2015
- Preventing User Errors: Avoiding Conscious Mistakes · Page Laubheimer, 2015
- Error-Message Guidelines · Tim Neusesser and Evan Sunwall, 2023
Show all 7 sources
- Recover from validation errors · GOV.UK Design System
- Usability Testing of Inline Form Validation · Edward Scott, 2024
- Understanding Success Criterion 3.3.4: Error Prevention (Legal, Financial, Data) · W3C Web Accessibility Initiative
- Understanding Success Criterion 3.3.7: Redundant Entry · W3C Web Accessibility Initiative
By company stage
Apply first
Nothing. You can start here.
Use instead
- Form optimization framework
You have not yet cut and laid out the form's fields. Run Form optimization framework first.
- Checkout process optimization
Shoppers leave checkout over costs, trust or account rules more than input errors. Use Checkout process optimization first, which feeds this one.
- Error message framework
The errors come from your API, CLI or SDK and the readers are developers. Use Error message framework.
- Accessibility optimization
You need every page checked for people who use screen readers, keyboards or zoom. Use Accessibility optimization, which this feeds.
Where it sits
Open the conversion rate optimization roadmapRecommended resources
No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.
Progress is not saved until you have an account. Create a free account