1. Component Guide
  2. Form error summary
  3. With many errors
Form error summary example

With many errors

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",
  items: [
    {
      text: "Descriptive link to the question with an error 1",
      href: "#example-error-1",
      data_attributes: {
        tracking: "GTM-123AA"
      }
    },
    {
      text: "Descriptive link to the question with an error 2",
      href: "#example-error-2",
      data_attributes: {
        tracking: "GTM-123AB"
      }
    },
    {
      text: "Description of error without link",
      data_attributes: {
        tracking: "GTM-123AC"
      }
    }
  ]
} %>