Possible to get rules defined via useForm
in useField
?
#4761
Unanswered
codeflorist
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a
ContactForm.vue
component, where i define the rules (using@vee-validate/rules
) in theuseForm
call like this:Then i have a reusable
FieldTextInput.vue
component like this:I'd like to append a
*
to the label, if the field is required. Is there any way to get rules defined in theuseForm
call ofContactForm.vue
insideFieldTextInput.vue
?Beta Was this translation helpful? Give feedback.
All reactions