Skip to content

Commit b86e2f4

Browse files
committed
minor #8956 Fixed invalid form validation reference (HeahDude, javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Fixed invalid form validation reference Continue #8940. Commits ------- 2af182d Reword 2b904b7 Fixed invalid form validation reference
2 parents 9c7c15b + 2af182d commit b86e2f4

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

form/disabling_validation.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,10 @@ 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+
The submission of extra form fields can be controlled with the
27+
`allow_extra_fields config option`_ and the maximum upload file size should be
28+
handled via your PHP and web server configuration.
29+
30+
.. _`allow_extra_fields config option`: https://symfony.com/doc/current/reference/forms/types/form.html#allow-extra-fields

form/dynamic_form_modification.rst

Lines changed: 0 additions & 8 deletions
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)