Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

validatorjs get all errors

const afterValidation = new Validator(finalForm, validationRules);

if (afterValidation.fails()) {
  const errorList = afterValidation.errors.all();
}
 
PREVIOUS NEXT
Tagged: #validatorjs #errors
ADD COMMENT
Topic
Name
4+7 =