@@ -599,12 +599,14 @@ Suppressing Form Validation
599
599
---------------------------
600
600
601
601
To suppress form validation you can use the ``POST_SUBMIT `` event and prevent
602
- :class: `Symfony\\ Component\\ Form\\ Extension\\ Validator\\ EventListener\\ ValidationListener `
603
- invocation .
602
+ the :class: `Symfony\\ Component\\ Form\\ Extension\\ Validator\\ EventListener\\ ValidationListener `
603
+ from being called .
604
604
605
- The reason for this is even if you set ``group_validation `` to ``false `` there
606
- are still some integrity checks executed, for example whether an uploaded file
607
- was too large or whether non-existing fields were submitted::
605
+ The reason for needing to do this is that even if you set ``group_validation ``
606
+ to ``false `` there are still some integrity checks executed. For example
607
+ an uploaded file will still be checked to see if it is too large and the form
608
+ will still check to see if non-existing fields were submitted. To disable
609
+ all of this, use a listener::
608
610
609
611
use Symfony\Component\Form\FormBuilderInterface;
610
612
use Symfony\Component\Form\FormEvents;
@@ -620,5 +622,5 @@ was too large or whether non-existing fields were submitted::
620
622
621
623
.. caution ::
622
624
623
- By doing this, you can disable something more than just form validation,
624
- because the ``POST_SUBMIT `` event can be used for something else too .
625
+ By doing this, you may accidentally disable something more than just form
626
+ validation, since the ``POST_SUBMIT `` event may have other listeners .
0 commit comments