Skip to content

Commit 13b99f5

Browse files
Turn off HTML5 validation in examples
1 parent e4f387a commit 13b99f5

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

app/components/all.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@
811811
}
812812
}) }}
813813

814-
<form>
814+
<form method="post" novalidate>
815815
{{ checkboxes({
816816
"idPrefix": "nationality",
817817
"name": "nationality",

app/components/checkboxes/conditional.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{% block content %}
4040
<div class="nhsuk-grid-row">
4141
<div class="nhsuk-grid-column-two-thirds">
42-
<form>
42+
<form method="post" novalidate>
4343
{{ checkboxes({
4444
"idPrefix": "contact",
4545
"name": "contact",

app/components/checkboxes/disabled.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block content %}
66
<div class="nhsuk-grid-row">
77
<div class="nhsuk-grid-column-two-thirds">
8-
<form>
8+
<form method="post" novalidate>
99
{{ checkboxes({
1010
"name": "colours",
1111
"items": [

app/components/checkboxes/error.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block content %}
66
<div class="nhsuk-grid-row">
77
<div class="nhsuk-grid-column-two-thirds">
8-
<form>
8+
<form method="post" novalidate>
99
{{ checkboxes({
1010
"name": "waste",
1111
"errorMessage": {

app/components/checkboxes/hint.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block content %}
66
<div class="nhsuk-grid-row">
77
<div class="nhsuk-grid-column-two-thirds">
8-
<form>
8+
<form method="post" novalidate>
99
{{ checkboxes({
1010
"fieldset": {
1111
"legend": {

app/components/checkboxes/index.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block content %}
66
<div class="nhsuk-grid-row">
77
<div class="nhsuk-grid-column-two-thirds">
8-
<form>
8+
<form method="post" novalidate>
99
{{ checkboxes({
1010
"idPrefix": "nationality",
1111
"name": "nationality",

app/components/checkboxes/none-of-the-above.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{% block content %}
4040
<div class="nhsuk-grid-row">
4141
<div class="nhsuk-grid-column-two-thirds">
42-
<form>
42+
<form method="post" novalidate>
4343
{{ checkboxes({
4444
"idPrefix": "contact",
4545
"name": "contact",

app/components/checkboxes/page-heading.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block content %}
66
<div class="nhsuk-grid-row">
77
<div class="nhsuk-grid-column-two-thirds">
8-
<form>
8+
<form method="post" novalidate>
99
{{ checkboxes({
1010
"name": "waste",
1111
"fieldset": {

app/components/radios/nested-conditionals.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"text": "Please do everything in your power to avoid nested conditionals like this. The example is here to demonstrate that it works - not as a recommendation!"
8686
}) }}
8787

88-
<form>
88+
<form method="post" novalidate>
8989
{{ radios({
9090
"idPrefix": "outer",
9191
"name": "outer",

0 commit comments

Comments
 (0)