Marcus Andrey Study
Ler em português Library

Complex products · Step 4 · 8 min read

Validation and errors at scale

On a 60-field record, errors pile up across sections and people. Four kinds of checks and when to run each, the difference between an error that stops and a warning that informs, an error summary that links to every problem, messages that say how to fix it, and never losing what someone typed.

On a long record, the hard part isn't showing one error. It's showing seven, in four sections, to someone who only owns two of them. A short form can get away with a red line under one field. A work order with six parts, filled by six people, needs to say which problems exist, where they are, whose they are, and which ones actually stop the job. Get that wrong and experts learn to ignore your messages, which is worse than having none.

What you'll be able to do after reading:

  • Tell four kinds of checks apart and choose when to run each
  • Decide between an error that stops and a warning that informs
  • Design an error summary for a long, split form
  • Write messages that say how to fix the problem

1. Four kinds of checks

Validation is the software checking that what someone entered can be accepted. On a work order, the checks come in four kinds, and each one can run at a different moment:

Kind What it checks Gale example When it can run
Format One field on its own Oil temperature is a number When the person leaves the field
Cross-field Two or more fields together Planned end is after planned start When the part is saved
Business rule The customer's or the law's rules No climb if the wind reading is over 12 m/s (Gale's fictional policy) When the part is saved, and again before the state changes
System Data held elsewhere The part is still in stock at that location At save; it can fail later too

The system kind belongs to another system, and it can fail for reasons the person didn't cause, so it gets its own lesson: System and integration errors.

The Forms lesson already covers the basics for one field: errors next to the field, in words. This lesson is about what changes when there are many.


2. When to check: after the field, not during it

Sources disagree on timing, and it helps to know why. NN/g recommends inline checks: "as soon as the user has finished filling in a field, an indicator should appear nearby if the field contains an error", while warning that "it's frustrating to see an error message before being given the opportunity to finish typing" (Krause, 10 Design Guidelines for Reporting Errors in Forms, NN/g, 2019). GOV.UK, writing for public services used by everyone, says the opposite: "Do not validate when the user moves away from a field" and "wait until they try to move to the next part of the service" (GOV.UK, Validation).

Both agree on one thing: never while the person is still typing. For Gale, the rule is:

  • Format checks run when the person leaves the field. Experts fill the same fields every day and want to know at once.
  • Everything else runs when a part is saved, so nobody gets an error about a field they haven't reached yet.

Write the rule down once, in the design system, so every form behaves the same.


3. Errors stop, warnings inform

Not every problem should block. An error stops the person until they fix it. A warning tells them something is unusual and lets them carry on, because they may know something the software doesn't.

  • Error: the wind reading is 14 m/s and the step is a climb. The permit can't be released. No expert overrides a safety rule from a form.
  • Warning: the planned date falls outside the forecast's weather window (the hours when wind and waves allow the work). The planner may know the forecast is about to change, so Gale warns and lets them save.

Two rules keep warnings useful. Show each warning once, where the decision is made, not on every save. And record who went ahead despite it, and when, so the supervisor can see it later (see Audit trails and history). If everything is a warning, people stop reading them.


4. One summary for many errors

WO-2026-018734 · DetailsNot saved: 3 problems
There is a problem

Details · yours

  • Planned end must be after planned start (14 Nov, 08:00)

Steps · yours

  • Enter the duration of step 4 in hours, for example 1.5

Parts · warehouse clerk

  • Only 1 oil filter left in Porto stock. Reserve 1, or choose another location.
Planned start14 Nov 2026, 08:00Warning: outside the forecast weather window (14 Nov, 10:00–18:00). You can still save.
Planned endPlanned end must be after planned start (14 Nov, 08:00)14 Nov 2026, 07:00
One save, three errors in three parts. The summary comes first, links to each field, groups the errors by part and says whose part it is. Each field repeats the same words. The warning about the weather window doesn't stop the save.Gale is fictional. Pattern: GOV.UK Design System, Error summary. Diagram: Marcus Andrey, CC BY 4.0.

When a save finds several problems, show two things: a message next to each field, and an error summary at the top that lists them all. GOV.UK says to "always show an error summary when there is a validation error, even if there's only one", to put it "at the top of the main container", and to "link the errors in the error summary to the answer they relate to", with the same words in both places. It also moves keyboard focus to the summary, so people using a keyboard or a screen reader start there (GOV.UK, Error summary). NN/g adds the reverse: a summary "shouldn't be used as the only form of error indication" (Krause, NN/g).

On a split form, add two things:

  • Group the summary by part, and say whose part it is. The planner can fix Details; Parts belong to the warehouse clerk.
  • Carry the problem to the part's status in the task list from Split a long form. GOV.UK has a status for this: "There is a problem". People who open the work order later see it without saving again.

5. Messages that say how to fix it

WCAG, the web accessibility standard, asks that if an error is detected "and suggestions for correction are known, then the suggestions are provided to the user" (W3C, Understanding SC 3.3.3 Error Suggestion). In practice, every message names the field and the fix:

Instead of Write
Invalid value Enter the oil temperature in °C, for example 62
Date error Planned end must be after planned start (14 Nov, 08:00)
Rule violation R-17 Wind is 14 m/s. Climbing needs 12 m/s or less. Choose another weather window.
Stock error Only 1 oil filter left in Porto stock. Reserve 1, or choose another location.

Use the domain's words, the ones from your glossary (The domain's words and a glossary), never a rule code. TurbineDesk said "ERR 4402". Its users kept a printed list of codes taped to the monitor.


6. Never lose what they typed

When a save fails, show the page again with everything as the person left it. GOV.UK puts it plainly: "show them the page again, with the form fields as the user filled them in" (GOV.UK, Validation). On a long record this is not a courtesy. Clearing twenty readings because one is wrong is how people learn to fill forms in Excel first and paste later.


7. Common mistakes

  • Checking while people type, so errors appear before they finish.
  • Making every unusual value a blocking error, so experts can't do their job.
  • Making everything a warning, so nobody reads warnings.
  • An error summary without links, or with different words from the field message.
  • Errors about parts the person doesn't own and can't fix, with no owner named.
  • Rule codes instead of words.
  • Clearing fields after a failed save.

8. Vocabulary

Term Meaning
Validation The software checking that what was entered can be accepted
Format check A check on one field alone, such as "is this a number"
Cross-field check A check that compares two or more fields
Business rule A rule from the customer, the law or the domain, such as the wind limit
Error A problem that stops the person until it's fixed
Warning A note that something is unusual; the person can carry on
Error summary A box at the top that lists every error, with a link to each field
Weather window The hours when wind and waves allow work on a turbine

9. Try it (no tools needed)

Use the work order from this lesson, or a long form you know.

  1. Write ten things that could go wrong when filling it. Mix all four kinds from section 1.
  2. Next to each, write Error or Warning. For each warning, write in one line what the expert might know that the software doesn't.
  3. Rewrite three of them as messages, using the "Instead of / Write" table as a model: name the field, say the fix, use the domain's words.
  4. Draw the error summary for three of them on paper, grouped by part, with the owner of each part.

It's good when every error is something no expert should override, every warning has a reason someone could go ahead, and a stranger could fix each problem from your message alone.

Reflection questions: Which of your warnings would people stop reading after a week? Which error would you be most afraid of turning into a warning?


10. If you already practise

  • Log how often each warning is overridden. A warning nobody ever overrides is an error; one everyone overrides is noise.
  • Keep messages in one list with their rule, so writers, developers and support use the same words.
  • Test the error summary with a keyboard only: save with three errors, follow the links, fix, save again.

Checklist

Learn more

Books, courses and videos to go deeper

  • Web Form Design: Filling in the BlanksLuke WroblewskiBook · Rosenfeld Media, 2008
  • Form Design PatternsAdam SilverBook · Smashing Media, 2018

Forms · Split a long form · System and integration errors · Interface states: empty, loading, error, success · States and edge cases

Saved only on this device.

↑ ↓ to move · Enter to open · Esc to close