From 2b904b7200b45dc7ea9583460515a121389ce7aa Mon Sep 17 00:00:00 2001 From: HeahDude Date: Mon, 1 Jan 2018 18:09:00 +0100 Subject: [PATCH 1/2] Fixed invalid form validation reference --- form/disabling_validation.rst | 10 ++++++++-- form/dynamic_form_modification.rst | 8 -------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/form/disabling_validation.rst b/form/disabling_validation.rst index 06acfdbac6e..9a7923ecf46 100644 --- a/form/disabling_validation.rst +++ b/form/disabling_validation.rst @@ -21,5 +21,11 @@ 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. + +Note that to disable the extra fields check, you can use the proper +`form type option`_. +One the other hand, the uploaded file limit should be handled via your php and +web server configuration. + +.. _`form type option`: http://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. From 2af182d9bb775547ade300bb8bc4787f56f199d0 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 2 Jan 2018 08:47:20 +0100 Subject: [PATCH 2/2] Reword --- form/disabling_validation.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/form/disabling_validation.rst b/form/disabling_validation.rst index 9a7923ecf46..e06cc4696a9 100644 --- a/form/disabling_validation.rst +++ b/form/disabling_validation.rst @@ -23,9 +23,8 @@ 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. -Note that to disable the extra fields check, you can use the proper -`form type option`_. -One the other hand, the uploaded file limit should be handled via your php and -web server configuration. +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. -.. _`form type option`: http://symfony.com/doc/current/reference/forms/types/form.html#allow-extra-fields +.. _`allow_extra_fields config option`: https://symfony.com/doc/current/reference/forms/types/form.html#allow-extra-fields