GC Design system Components Installation Contact us Get involved 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: Following standard practice, the code builder uses English for all code elements.

Help us improve

Have questions? Something you'd change or you'd like to see? Share your feedback with us to help improve GC Design System.

Give feedback
2024-10-17