1. Component Guide
  2. Form error summary
  3. With custom target on links
Form error summary example

With custom target on links

How it looks (preview)

Message to alert the user to a problem goes here

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 opening in a new window",
      href: "#example-error-1",
      target: "_blank"
    },
    {
      text: "Descriptive link to the question with an error opening in the same window",
      href: "#example-error-2",
      target: "_self"
    }
  ]
} %>