Skip to content

Commit c2dfc95

Browse files
committed
minor #12358 document the validate option (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- document the validate option documentation for symfony/symfony#33609 Commits ------- 0ed33d2 document the validate option
2 parents dce0204 + 0ed33d2 commit c2dfc95

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

reference/forms/types/submit.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ A submit button.
99
+----------------------+----------------------------------------------------------------------+
1010
| Rendered as | ``button`` ``submit`` tag |
1111
+----------------------+----------------------------------------------------------------------+
12+
| Options | - `validate`_ |
13+
+----------------------+----------------------------------------------------------------------+
1214
| Inherited | - `attr`_ |
1315
| options | - `attr_translation_parameters`_ |
1416
| | - `disabled`_ |
@@ -35,6 +37,21 @@ useful when :doc:`a form has multiple submit buttons </form/multiple_buttons>`::
3537
// ...
3638
}
3739

40+
Options
41+
-------
42+
43+
validate
44+
~~~~~~~~
45+
46+
**type**: ``boolean`` **default**: ``true``
47+
48+
.. versionadded:: 4.4
49+
50+
The ``validate`` option was introduced in Symfony 4.4.
51+
52+
Set this option to ``false`` to disable the client-side validation of the form
53+
performed by the browser.
54+
3855
Inherited Options
3956
-----------------
4057

0 commit comments

Comments
 (0)