diff --git a/form/disabling_validation.rst b/form/disabling_validation.rst index 06acfdbac6e..e06cc4696a9 100644 --- a/form/disabling_validation.rst +++ b/form/disabling_validation.rst @@ -21,5 +21,10 @@ these cases you can set the ``validation_groups`` option to ``false``:: Note that when you do that, the form will still run basic integrity checks, for example whether an uploaded file was too large or whether non-existing -fields were submitted. If you want to suppress validation, you can use the -:ref:`POST_SUBMIT event `. +fields were submitted. + +The submission of extra form fields can be controlled with the +`allow_extra_fields config option`_ and the maximum upload file size should be +handled via your PHP and web server configuration. + +.. _`allow_extra_fields config option`: https://symfony.com/doc/current/reference/forms/types/form.html#allow-extra-fields diff --git a/form/dynamic_form_modification.rst b/form/dynamic_form_modification.rst index 3a3a0e9d8d8..72c731c90c6 100644 --- a/form/dynamic_form_modification.rst +++ b/form/dynamic_form_modification.rst @@ -702,11 +702,3 @@ field according to the current selection in the ``sport`` field: The major benefit of submitting the whole form to just extract the updated ``position`` field is that no additional server-side code is needed; all the code from above to generate the submitted form can be reused. - -.. _form-dynamic-form-modification-suppressing-form-validation: - -Suppressing Form Validation ---------------------------- - -To suppress form validation, set ``validation_groups`` to ``false`` or an empty -array.