Skip to content

Commit 0ed33d2

Browse files
committed
document the validate option
1 parent 8bbfac5 commit 0ed33d2

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy