1. Component Guide
  2. Form error summary
  3. With data attributes
Form error summary example

With data attributes

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/error_summary", {
  title: "Message to alert the user to a problem goes here",
  description: "Optional description of the errors and how to correct them",
  data_attributes: {
    tracking: "GTM-123AB"
  items: [
      text: "Descriptive link to the question with an error 1"
} %>