The Error summary component highlights validation issues at the top of a page, helping users quickly understand what went wrong and how to fix it.
The component appears when a user submits a page containing one or more errors.
{{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "default", id: "6915ea608bd6b" }) }} {{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "multiple-errors", id: "6915ea608bddd" }) }}Use the Error summary whenever a user submits a page with validation errors.
You must display an error summary even if there is only a single error on the page.
Do not use the Error summary if the user has not yet interacted with the page or if no validation errors are present.
Before using this component, consider:
The error summary provides essential accessibility support for users who rely on assistive technologies. It ensures that errors are announced, visible and easy to navigate back to.
The preferred approach is to prevent errors before they occur, but where validation is required, always use the Error summary to clearly surface problems.
Every error listed in the summary must link directly to its relevant field.
For questions with a single input—such as file upload, select, textarea, text input or character count—link directly to the field itself.
This ensures users can navigate quickly to each error and understand what needs to be corrected.
This component is used on:
This list is not exhaustive.
The below criteria all need to be met for a component to be considered as fully developed for use within the ASP Digital Design System.