Good question, but could not find a solution to this question. But I would not recommend it. It is always best to show all error messages for required fields. Think of a form with a lot of input fields, and I would not know the error until I scroll down and press the submit button.
What will you achieve by limiting the number of error messages displayed?
source share