Toast or Inline Error: Where a Form Message Belongs

On this page

Quick Answers

Should form errors be inline or toasts?

Anything the user has to correct belongs inline, right next to the field that failed. Inline errors stay on screen while the user works on the fix. Toasts are for messages with no field to point at, like a save confirmation or a dropped connection.

When is toast the right choice?

When the message confirms rather than instructs. An autosave that landed, an export that started, a reset link that went out. If the user never has to act, and nothing breaks when they look away, a toast is a cheap, harmless channel.

Do I need an error summary as well as inline errors?

Only when a submission fails across several fields. The summary sits at the top, names each problem and links to it. GOV.UK shows one even for a single error, which is the safer default on long forms.

Why do screen readers miss our toast errors?

Because the announcement container did not exist when the page loaded. A live region created at the same moment as the message usually is not announced. The region has to be there and empty first, then get filled.

The Advice Online Stops One Step Too Early

Search for toast vs inline error message and the top results mostly agree. Field errors inline, everything else in a toast. Two screenshots, no rule for the cases in between.

That answer is right, and incomplete. It says nothing about six fields failing at once, a timeout with no field to blame, or a four second toast carrying an instruction. Those are the cases that turn into support tickets.

So ask two questions together. What must the user do with this message, and can they still see the thing it describes while they do it? A field error sent by toast fails both tests, while a confirmation passes both.

Scope note: this covers placement only, and it complements our guides on form structure and input controls.

The Placement Decision Matrix

Form validation error placement is a decision, not a matter of taste. Place by failure type, not by whichever component is already in the library, because a team with a toast component tends to see toast shaped problems.

Failure typeWhere the message goesPatternWhy it works
Field validation errorDirectly under the field, linked in codeInline errorMessage and control are read in one glance, and it stays until the value is fixed
Multi-field submission errorTop of the form, plus inline on every failed fieldSummary banner plus inline errorsThe summary gives the count and the links, the inline text gives the fix
Network or API timeoutAbove the submit button, with a retry controlPersistent alertNo field is at fault, and the retry has to stay reachable
Server rejection with no field at faultAbove the submit buttonPersistent inline alertRate limits, expired sessions and plan limits cannot attach to an input
Background action confirmationEdge of the screen, near the surface that changedToast notificationNothing to fix, safe to miss, and it does not interrupt the task
Background action failureInside the surface that failed, until dismissedBanner with a recovery actionThe user has to decide something, so the timer has to go

Read the table by consequence, not by row count. The rows that need a persistent message are the ones where something must be corrected. The rows that may disappear are the ones the user’s next step does not depend on.

The Three-Part Inline Error Anatomy

Most inline errors are one part: red text near the field. That version fails a colourblind user, fails a screen reader, and often fails visually. Inline form validation UX is a three part job.

Proximity. The message sits with the field it describes, close enough that the eye does not travel. Under the input keeps reading order as label, input, message, and stays clear of autofill panels and mobile keyboards.

A second channel beyond colour. Red text and a red border are one signal. Add an icon or a text prefix so the state survives colour blindness, greyscale printing and a badly calibrated screen.

Programmatic association. This is the part that gets skipped when a designer hands over a red style and nothing else. Mark the field invalid, then name the message as its description so assistive technology reads both on focus.

<label for="email">Work email</label>

<p id="email-hint">We reply within one working day.</p>

<input id="email" name="email" type="email"

aria-invalid="true"

aria-describedby="email-hint email-error">

<p id="email-error" class="error">

<span class="icon" aria-hidden="true">!</span>

Enter a full work email address, including the domain.

</p>

Two details decide whether that works. The error merges into the description instead of replacing the hint, so guidance is lost only once. And the wording says what to do: “Enter a full work email address” is a fix, while “Invalid input” is an accusation.

Radio buttons or checkboxes answered as a unit are one question, not five. Marking each one invalid repeats the description on every arrow key press, so put the state on the group.

The Toast Trap on Mobile and Long Forms

A toast is pinned to a viewport the user does not control. On a phone, opening the keyboard changes that viewport while the message is still on screen. Depending on the browser, the toast gets pushed out of view, sits behind the keyboard, or jumps somewhere else.

Either way, the user is looking at the field they are typing in, not the corner where the message appeared.

Now try a long onboarding form. The user reaches row thirty four of forty and hits submit, and a message appears at the top for four seconds saying three fields need attention. It does not say which three, and it does not scroll anywhere.

By the time the user gets to the top, the message is gone. What is left is a memory task, and memory tasks are where people give up.

That is the whole case against toast notification errors in one screen. Inline messages sit where the user is looking, they name the field and the fix, and they stay put.

Accessibility widens the gap. A message with a time limit is a message under a clock, and someone reading with a screen reader or screen magnification is competing with that clock. Content the user must act on needs a way to extend or remove the limit, and an auto dismissing toast offers neither.

When a Toast Is Actually Right

The toast has a real job, and it is narrower than most design systems suggest. It works when three things are true at once.

  • Nothing needs fixing. The message confirms something already worked: settings saved, link copied, invite sent.
  • Missing it costs nothing. Look away and the outcome is unchanged, because the state is visible somewhere else.
  • It is not the only record. The switch is on, the file is in the list, the row shows the new value.

Used that way, the toast is genuinely good. It confirms an action without a dialog, a page jump or a focus change. Background work is its best home: an autosave landing while the user types, an import that started, an export arriving by email.

The moment the message contains an instruction, the toast is the wrong container, background case included. If the autosave fails, the user has to decide something. So the message moves into the surface that failed, stays there, and offers a retry.

When the Summary Banner Earns Its Space

Inline errors answer what is wrong with this field. They do not answer how many things are wrong, or where to start. That second question is what a long form raises.

A summary banner answers it. The GOV.UK pattern is worth copying: a heading, a list of every error worded exactly as the inline message, each item linking to its field, focus moved to the summary on submit, and the page title prefixed with Error: so the failure is announced first.

Two details get dropped in private builds. The wording has to match the inline wording, or the user assumes two separate problems. And focus has to move, or a keyboard user is left at the submit button with the errors behind them.

The banner complements inline errors and never replaces them. A summary with no inline messages says there is a problem without saying where.

Screen Reader and Live Region Hygiene

Accessible form error messages apply to popup messages too. Four things most libraries ship as options rather than defaults.

A live region that exists at load. An empty container renders with the page, and the text goes in later. A region created alongside the message usually is not announced, which is the most common reason a toast stays silent.

The right politeness. role=”status” waits for the screen reader to finish before announcing, which suits confirmations. role=”alert” interrupts and belongs to genuine errors. Using role=”alert” everywhere makes the whole interface shout.

No focus theft. A confirmation that grabs focus pulls the user out of their work. Focus moves only when a response is demanded, and then the right pattern is a dialog, not a toast.

A timer that yields. Pause the countdown on hover and focus, provide a close button, and give longer text more time. An error that needs action should have no timer at all.

Check a narrow width too. At 320 pixels the toast must not force horizontal scrolling or cover the control that has keyboard focus.

A Short Audit Before You Ship

  • Pick five real failures and place each one with the matrix. Note any row left with no home.
  • Submit a long form with every field empty and confirm the first failed field is reachable without hunting.
  • Check an inline error with colour removed. If it disappears, add an icon or a text prefix.
  • Submit with a screen reader on and confirm each error is announced once.
  • Trigger a toast and reach its close button by keyboard before it fades.

If users keep reporting that they cannot find what to fix, the placement is usually the cause, and form feedback UX best practices are mostly placement decisions. Our UI/UX design team audits error paths against these rules and hands back annotated screens. For products where the form is the product, our SaaS design team builds the feedback states into the component library, so every new screen inherits them.

Frequently Asked Questions

Should the submit button stay disabled until every field is valid?

No. A disabled button says something is wrong and gives no way to find out what. Leave it enabled, let the submission surface every problem at once, and keep the button as the thing keyboard users tab to as confirmation the form is done.

Does the error message go above or below the field?

Below the input is the safer default. It matches reading order for sighted users and announcement order for assistive technology, and it stays clear of autofill panels and the mobile keyboard. Above can work, so pick one and apply it everywhere.

Can we validate while the user is typing?

Not on the first pass. Validating before the first submission marks half finished input as wrong, which reads as punishment for typing. Validate on submit, then revalidate that field on each keystroke until it passes.

Is a toast ever acceptable for a form error?

Only as a duplicate of something already visible. A short “some fields need attention” toast beside inline errors is harmless. It becomes a defect when it is the only place the error exists, because it disappears before the correction starts.

References

Keep reading

Related posts

Stay tuned. Subscribe to our newsletter.

Product notes, engineering write-ups and releases — once a month, no noise.