Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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.",
  },
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #validate #array #parsley
ADD COMMENT
Topic
Name
2+6 =