LT-67: Displaying the validation error messages inside the form

This commit is contained in:
Bruno Alves de Faria committed 2016-08-31 19:17:00 -03:00
1 parent a47ecf0aac
commit 33e7297064
9 files changed
+84 -8

No files matched your search

+7
View File
@@ -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]"'
});