Skip to content

Commit b8f0771

Browse files
Yohann76OskarStark
authored andcommitted
Update form.rst
1 parent fceaa74 commit b8f0771

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/form.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,9 @@ method. This is useful when you'd like to validate the form without showing
763763
validation errors to the user (i.e. during a partial AJAX submission or
764764
:doc:`dynamic form modification </form/dynamic_form_modification>`).
765765

766-
Because clearing the errors makes the form valid, ``clearErrors()`` should only
766+
Because clearing the errors makes the form valid,
767+
:method:`Symfony\\Component\\Form\\ClearableErrorsInterface::clearErrors` should only
768+
767769
be called after testing whether the form is valid.
768770

769771
Learn more

0 commit comments

Comments
 (0)