Skip to content

document the validate option #12358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 24, 2019
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