Skip to content

Commit ef15e31

Browse files
committed
[symfony#3346] Minor tweaks
1 parent d6edcdf commit ef15e31

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

cookbook/form/dynamic_form_modification.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -599,12 +599,14 @@ Suppressing Form Validation
599599
---------------------------
600600

601601
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.
604604

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::
608610

609611
use Symfony\Component\Form\FormBuilderInterface;
610612
use Symfony\Component\Form\FormEvents;
@@ -620,5 +622,5 @@ was too large or whether non-existing fields were submitted::
620622

621623
.. caution::
622624

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

Comments
 (0)