Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions reference/forms/types/submit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ A submit button.
+----------------------+----------------------------------------------------------------------+
| Rendered as | ``button`` ``submit`` tag |
+----------------------+----------------------------------------------------------------------+
| Options | - `validate`_ |
+----------------------+----------------------------------------------------------------------+
| Inherited | - `attr`_ |
| options | - `attr_translation_parameters`_ |
| | - `disabled`_ |
Expand All @@ -35,6 +37,21 @@ useful when :doc:`a form has multiple submit buttons </form/multiple_buttons>`::
// ...
}

Options
-------

validate
~~~~~~~~

**type**: ``boolean`` **default**: ``true``

.. versionadded:: 4.4

The ``validate`` option was introduced in Symfony 4.4.

Set this option to ``false`` to disable the client-side validation of the form
performed by the browser.

Inherited Options
-----------------

Expand Down