Don't automatically prepend name on error messages
Closed this issue · 2 comments
adelacreative commented
I need to remove the automatically prepended name to the error messages. Is this possible? The names on my inputs need to be a certain format which is not user friendly. Thanks.
jonnymaceachern commented
You can do either of the following:
-
Prefix your message with a caret:
message: "^This error message will not prepend the attribute name."
-
Set the
fullMessages
option tofalse
:var options = { fullMessages: false } validate(attributes, constraints, options);
adelacreative commented
Thanks very much for your help!!