Agent Friendly
← Agent readiness guidesAgent readiness

Form validation errors an AI agent can recover from

By Agent Friendly · Published · 1 min read

A useful validation error identifies the field, explains the problem, and preserves the user’s other work. A generic “Something went wrong” does not tell an agent how to repair the input.

Check the visitor’s path

If a postcode field rejects spaces, say what format is accepted rather than silently clearing the form. Better still, accept reasonable formatting variations when the underlying address remains the same.

A check you can run

Enter one deliberately invalid value in a test form. Confirm the error identifies the correction, focus can reach it, and the remaining values survive the retry.

Sources & scopeAgent Friendly: assessment rubric ↗W3C: accessible form notifications ↗

The linked rubric describes our assessment framework. Practical examples and checks here are editorial suggestions. Evidence reviewed 2026-11-01.

Read the assessment rubric ↗
Preview card & downloadForm validation errors an AI agent can recover from — Agent Friendly share cardDownload preview image

Link previews use this image. Each app controls how and when it displays the card.

Written with AI assistance. Examples are illustrative. Read our editorial method.