Agent view Raw markdown

This is Form Error Messages: Name the Field, Issue and Fix as plain markdown, the version AI agents read. Same facts as the page, without the layout.

---
title: "Form Error Messages: Name the Field, Issue and Fix · Rubric"
description: A good error message says which field failed, what's wrong in plain words and what a valid value looks like. Never just “Invalid input”.
url: https://rubric.design/ux/forms.error-message-content
format: agent view of this page
updated: 2026-11-16
---

[UX guides](https://rubric.design/ux/) / [Forms](https://rubric.design/ux/topic/forms) / Error messages name the field, the problem, and the fix

# Error messages name the field, the problem, and the fix

Usually medium · How serious this usually is when it goes wrong. Not a score.

## The guideline

Write every error message to do three things: identify which field failed, state what is wrong with it in plain language, and say what a valid value looks like. Never rely on a generic message like "Invalid input" or a bare red border with no text. Place the message immediately next to the field it concerns (or link a top-of-form summary to each field), keep it on screen until the specific problem is corrected — not on a timer — and associate it with the field via `aria-describedby` so assistive technology announces it. Where a correction is knowable (a mistyped domain, a value outside an allowed range), suggest it rather than only naming the failure. Where a short message cannot explain the rule in full, link it to a fuller explanation beside the field or in help instead of cramming the detail in.

**What goes wrong:** A form field showing only the message “Invalid input”.

**What good looks like:** An email field whose error asks the person to check the address and suggests the likely fix.

## Common failures

- Form error messages are vague ("Error", "Invalid input") and not anchored to specific fields.

## Where it applies

### Pages

- Forms

### Disciplines

- Conversion

### Devices

- Desktop web
- Mobile app
- Mobile web

## Why it matters, how to fix it, and the research behind it

Rubric's full guide adds the reasoning, the fix and the sources for this check, and checks your pages against it and the rest of the checklist, the way a visitor would meet them. Findings come back worst first.

[Use demo account](https://rubric.design/demo) · [Use it from your coding agent (MCP)](https://rubric.design/#agents)

## Related guides

- [Entered checkout data survives errors and back-navigation](https://rubric.design/ux/checkout.entered-data-persists-through-errors) · Usually high · Preserve every non-sensitive field — name, address, phone, email — across validation errors, session-level failures, and backward or forward navigation within…
- [Slow checkout actions show a status, not a frozen screen](https://rubric.design/ux/checkout.loading-state-feedback) · Usually high · Show a spinner or progress indicator within a fraction of a second of any checkout action that can take more than a couple of seconds — payment submission…
- [Inputs declare their type and autocomplete purpose](https://rubric.design/ux/forms.autofill-and-input-type) · Usually high · Set the type attribute to match the data a field collects (email, tel, number with inputmode, and so on) and add the matching autocomplete token from the HTML…
- [Selecting an option applies it immediately, without a separate Apply step](https://rubric.design/ux/forms.changes-apply-without-a-button) · Usually high · Apply the result of a selection — a radio button, a dropdown, a quantity stepper — as soon as it is made, updating totals, delivery estimates and stock…
- [CTA label matches the page it leads to](https://rubric.design/ux/forms.cta-label-matches-destination) · Usually high · Word the CTA to describe exactly what the destination page is, using the same or closely matching terms — a button labelled "See Plans" leads to a page whose…