1. Government Frontend Component Guide
  2. Form radio button
  3. Tracking-url

Form radio button example

Tracking-url

How it looks

How to call this example

<%= render "govuk_publishing_components/components/radio", {
  name: "radio-group-tracking-url",
  id_prefix: "tracking-url",
  items: [
    {
      value: "government-gateway",
      text: "Use Government Gateway",
      url: "https://www.tax.service.gov.uk/gg/sign-in?continue=%2Fcheck-your-state-pension"
    },
    {
      value: "govuk-verify",
      text: "Use GOV.UK Verify",
      url: "https://www.tax.service.gov.uk/check-your-state-pension/signin/verify?journey_hint=uk_idp_sign_in"
    }
  ]
} %>