GC Design System Components Installation Page templates Contact us Get involved Find a demo GC Design System Components

Error summary
<gcds-error-summary>

Also called: error list.

An error summary is a list of user errors in a form.

Error summary component preview

Build an error summary

Use an error summary to help a person understand how much work they need to do before moving to the next task.

All GC Design System components come with default error handling for required form components. For error summaries this means any required component will prompt an inline error message onBlur by default. That error message will be listed in the error summary on form submit.

Coding and accessibility for error summaries

Use the error summary with GC Design System components

The GC Design System error summary uses the listen attribute to collect errors. The error summary will list errors from GC Design System components onSubmit. Errors are listed in the same order as they appear on the page.

Opt to use the error summary with your own component instances

If you’re using some of your own form components:

Opt to change the error heading

Opt to make your error heading more specific by using the heading attributes.

Get your code

Generate an instance of the component you need by selecting its code properties.

  1. Explore by choosing different code values to generate the instance you want.

  2. Get the code and pull it into your environment.

  3. Add any copy you need to the component (like text for a label).

Note: The code builder uses English for all code elements, which follows standard practice.

Help us improve

Have questions or a request? Give feedback on our contact form.

Something's wrong? Raise it through GitHub with an account. You'll have access to the team's direct responses, progress made on your issue, and issues raised by others.

Give feedback Report an issue on GitHub
2025-04-16