diff --git a/components/form.rst b/components/form.rst index 9de26b7ea26..9e01942c73a 100644 --- a/components/form.rst +++ b/components/form.rst @@ -763,7 +763,9 @@ 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 `). -Because clearing the errors makes the form valid, ``clearErrors()`` should only +Because clearing the errors makes the form valid, +:method:`Symfony\\Component\\Form\\ClearableErrorsInterface::clearErrors` should only + be called after testing whether the form is valid. Learn more