Need help setting up a custom field's validation #4407
Unanswered
Drillan767
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm trying to setup Vee Validate 4 with Vue 3 Datepicker, I feel like I'm close to have everything working, but something's missing.
For some context: the file I'm setting everything up contains two Datepickers, so I need to use
useField()
twice (with different variable names)script setup (relevant part)
template (relevant part)
With this configuration, if I check the Vee Validate plugin in the Vue tab, both my fields are displayed, and I have the following as state:
If I change both my
initialValue
to the same withtoString()
, initialValueand
currentValue` show the date to string, but nothing updates when I change the value.What am I missing? Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions