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.
2 parents 4caafa9 + fe4d0f2 commit c4bed9fCopy full SHA for c4bed9f
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