Skip to content

Commit 2b904b7

Browse files
committed
Fixed invalid form validation reference
1 parent d117184 commit 2b904b7

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

form/disabling_validation.rst

+8-2
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,11 @@ these cases you can set the ``validation_groups`` option to ``false``::
2121

2222
Note that when you do that, the form will still run basic integrity checks,
2323
for example whether an uploaded file was too large or whether non-existing
24-
fields were submitted. If you want to suppress validation, you can use the
25-
:ref:`POST_SUBMIT event <form-dynamic-form-modification-suppressing-form-validation>`.
24+
fields were submitted.
25+
26+
Note that to disable the extra fields check, you can use the proper
27+
`form type option`_.
28+
One the other hand, the uploaded file limit should be handled via your php and
29+
web server configuration.
30+
31+
.. _`form type option`: http://symfony.com/doc/current/reference/forms/types/form.html#allow-extra-fields

form/dynamic_form_modification.rst

-8
Original file line numberDiff line numberDiff line change
@@ -702,11 +702,3 @@ field according to the current selection in the ``sport`` field:
702702
The major benefit of submitting the whole form to just extract the updated
703703
``position`` field is that no additional server-side code is needed; all the
704704
code from above to generate the submitted form can be reused.
705-
706-
.. _form-dynamic-form-modification-suppressing-form-validation:
707-
708-
Suppressing Form Validation
709-
---------------------------
710-
711-
To suppress form validation, set ``validation_groups`` to ``false`` or an empty
712-
array.

0 commit comments

Comments
 (0)