Skip to content

Commit

Permalink
Fix exclusive checkbox option example
Browse files Browse the repository at this point in the history
The exclusive checkbox option example has inconsistent checkbox names `countries` and `languages` which causes the live guide to have incorrect behaviour.
  • Loading branch information
c0nspiracy authored Oct 4, 2022
1 parent d5c4c32 commit c79e34e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guide/lib/examples/checkboxes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,17 @@ def checkbox_field_with_exclusive_option
label: { text: "France" },
link_errors: true
= f.govuk_check_box :languages,
= f.govuk_check_box :countries,
:portugal,
label: { text: "Portugal" }
= f.govuk_check_box :languages,
= f.govuk_check_box :countries,
:spain,
label: { text: "Spain" }
= f.govuk_check_box_divider
= f.govuk_check_box :languages,
= f.govuk_check_box :countries,
:none,
exclusive: true,
label: { text: "No, I will not be travelling to any of these countries " }
Expand Down

0 comments on commit c79e34e

Please sign in to comment.