What is the difference between `formError` and `formErrors`?

Responsive Ad Header

Question

Grade: Education Subject: Support
What is the difference between `formError` and `formErrors`?
Asked by:
60 Viewed 60 Answers
Responsive Ad After Question

Answer (60)

Best Answer
(292)
`formError` is a single error message for the entire form, while `formErrors` is an object containing error messages for individual fields. Typically, you'll use `formErrors` to display specific errors for each field, and `formError` to display a general error if the entire form is invalid.