[Vuejs]-How to specify priority for custom rules in vee-validate?

0👍

You have to change the order of the rule declared, from regex, custom_require_if, max to custom_require_if, regex, max

It applies each rule you declared by following the order of the declaration, it works like an if full of “or” declarations.
The validation then fails upon the first rule not satisfied and return the corresponding error message

Leave a comment