Replies: 1 comment
-
Sorry for the delay. You can access the <ValidationObserver v-slot="{ fields }">
<ValidationProvider
name="password"
rules="required|min:4|alpha_num|password:@confirm"
v-slot="{ errors }"
>
<input type="password" v-model="password" />
<span>{{ errors[0] }}</span>
</ValidationProvider>
<pre>{{ fields.password.failedRules.required ? 'Failed Required' : '' }}</pre>
</ValidationObserver> |
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
-
Greetings!
I create the validation rules for several inputs. I have several ValidationProviders inside one ValidationObserver.
But outside of that I need to use computed properties to reactively update the state of the validation hints.
To do this, I need to know the field where the error is at the moment and the rule that failed.
Example:
https://codesandbox.io/s/codesandbox-forked-vxdl8?file=/src/Demo.vue
Is it possible to solve this problem with vee-validate v3?
Beta Was this translation helpful? Give feedback.
All reactions