validate array parsley
//add validateMultiple instead of validateString or ValidateNumber
window.Parsley.addValidator('myvalidator', {
requirementType: 'integer',
validateMultiple(values, requirement, instance) {
console.log('values', values);
return true;
},
messages: {
en: "'Yes' required.",
},
});