How can ValidationObserver's 'setErrors' method be used to specify which validation rule the message is for? #3392
Unanswered
silvaDominic
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It doesn't set the messages per rule, it sets them per field as the documentation says. If you are looking to set specific error messages for specific rules then use the localization API |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an instance where I want 2 fields with a common rule to output a different message. I figured I could use the setErrors message for this, but It's not clear from the documentation if it's possible to specify the rule? It seems to just explicitly set the message as soon as it's called.
Beta Was this translation helpful? Give feedback.
All reactions