Is there a way to hide all form error messages from the user? I display my own messages and the fact that the error messages are displayed in between the form fields is of no use to me.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can render the template yourself, and just leave out the errors. See the docs on customizing the form template for more info.
Alternatively, the default is for errors to be included in an unordered list, for example:
So you could hide the
errorlistclass with CSS.A third option would be to customize the error list format, but I think the first two options are easier.