Skip to content

Commit 4569187

Browse files
javiereguiluzLiinkiing
authored andcommitted
Wrap long lines and add the versionadded directive
1 parent 7f185ee commit 4569187

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

components/form.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,9 +750,17 @@ method to access the list of errors. It returns a
750750
Clearing Form Errors
751751
~~~~~~~~~~~~~~~~~~~~
752752

753-
Any errors can be manually cleared using the :method:`Symfony\\Component\\Form\\ClearableErrorsInterface::clearErrors` method. This is useful when you'd like to validate the form without showing validation errors to the user (i.e. during a partial AJAX submission or :doc:`dynamic form modification </form/dynamic_form_modification>`).
753+
.. versionadded:: 4.2
754+
The ``clearErrors()`` method was introduced in Symfony 4.2.
754755

755-
Because clearing the errors makes the form valid, ``clearErrors()`` should only be called after testing whether the form is valid.
756+
Any errors can be manually cleared using the
757+
:method:`Symfony\\Component\\Form\\ClearableErrorsInterface::clearErrors`
758+
method. This is useful when you'd like to validate the form without showing
759+
validation errors to the user (i.e. during a partial AJAX submission or
760+
:doc:`dynamic form modification </form/dynamic_form_modification>`).
761+
762+
Because clearing the errors makes the form valid, ``clearErrors()`` should only
763+
be called after testing whether the form is valid.
756764

757765
Learn more
758766
----------

0 commit comments

Comments
 (0)