LT-67: Displaying the validation error messages inside the form
This commit is contained in:
1 parent
a47ecf0aac
commit
33e7297064
9 files changed
+84
-8
No files matched your search
@@ -25,3 +25,10 @@ SimpleSchema.addValidator(function() {
|
||||
return 'required';
|
||||
}
|
||||
});
|
||||
|
||||
// Including [label] for some messages
|
||||
SimpleSchema.messages({
|
||||
maxCount: '[label] can not have more than [maxCount] values',
|
||||
minCount: '[label] must have at least [minCount] values',
|
||||
notAllowed: '[label] has an invalid value: "[value]"'
|
||||
});
|
||||
Reference in new issue
Block a user