We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c6e96a commit 998929cCopy full SHA for 998929c
components/form.rst
@@ -749,10 +749,11 @@ method to access the list of errors. It returns a
749
// "firstName" field
750
$errors = $form['firstName']->getErrors();
751
752
- // a FormErrorIterator instance in a flattened structure
+ // a FormErrorIterator instance including child forms in a flattened structure
753
+ // use getOrigin() to determine the form causing the error
754
$errors = $form->getErrors(true);
755
- // a FormErrorIterator instance representing the form tree structure
756
+ // a FormErrorIterator instance including child forms without flattening the output structure
757
$errors = $form->getErrors(true, false);
758
759
Clearing Form Errors
0 commit comments