Skip to content

V4 How to watch fields values changes [Element Plus + Vee Validate v4] #3484

Answered by logaretm
thamibn asked this question in Q&A
Discussion options

You must be logged in to vote

Please keep your questions either in the discussions section or ask on StackOverflow, the issues section is dedicated to actual issues bug reports and suggestions.

To answer your question, if you need to watch the current value you are better off using the composition API here and watch the value property off the useField function.

For setting values you can either assign the value property directly to whatever value you need or use the setFieldValue function.

Here is an example:

https://codesandbox.io/s/vee-validate-v4-with-element-plus-framework-forked-k75l5?file=/src/App.vue

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by thamibn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3483 on September 09, 2021 01:52.