Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd4143f1

Browse files
committed
[Form] Ability to clear form errors
1 parent3235d06 commitd4143f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎components/form.rst‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,11 @@ method to access the list of errors. It returns a
744744
// a FormErrorIterator instance representing the form tree structure
745745
$errors = $form->getErrors(true, false);
746746

747+
Clearing Form Errors
748+
~~~~~~~~~~~~~~~~~~~~
749+
750+
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>`).
751+
747752
Learn more
748753
----------
749754

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp