How to trigger validation rule for a specific VTextField in programmatically? #20074
Replies: 1 comment
-
I used ref for the field to resolve it.
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi community,
We can apply validation rules to form fields through the
rules
prop. In my case, I've applied the required rule to aVTextField
:This works correctly whenever an action is performed on the field. However, I also need the validation to occur when clicking the submit button (action implemented in the vee-validate library), but this is not happening. The field isn't wrapped in the
v-form
component.How can I implement this validation action?
Beta Was this translation helpful? Give feedback.
All reactions