get parameters from rule in custom message #3360
-
Hello, |
Beta Was this translation helpful? Give feedback.
Answered by
TylerMRoderick
Jan 5, 2023
Replies: 1 comment
-
Adding an argument placeholder that matches the rule parameter could work here. something like this: extend('max', {
...max,
params: ['max'],
message: 'The {_field_} should not be more than {max} characters',
}); Docs: https://vee-validate.logaretm.com/v3/guide/basics.html#arguments-placeholders |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lumos94
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adding an argument placeholder that matches the rule parameter could work here.
something like this:
Docs: https://vee-validate.logaretm.com/v3/guide/basics.html#arguments-placeholders