showing results for - "validate array parsley"
Cerise
22 Apr 2017
1//add validateMultiple instead of validateString or ValidateNumber
2
3window.Parsley.addValidator('myvalidator', {
4  requirementType: 'integer',
5  validateMultiple(values, requirement, instance) {
6    console.log('values', values);
7    return true;
8  },
9  messages: {
10    en: "'Yes' required.",
11  },
12});
13