Validator component for Vue.js
Questions tagged [vue-validator]
24 questions
10
votes
2 answers
How to validate password with Vuelidate?
Greeting,
i need to validate the password form
In addition to the field required
Must have at least one uppercase letter, lowercase letter at least, number at least one and at least one of the following characters "#?! @ $% ^ & * -"
I am using this…

TEtet
- 129
- 1
- 9
7
votes
2 answers
Vuevalidate async validation results to a loop
Am using Vue Validate
i have the following in my vuevlidate
validations: {
user_form: {
email: {required,email, isUnique(value) {
// standalone validator ideally should not assume a field is required
…

Geoff
- 6,277
- 23
- 87
- 197
3
votes
3 answers
Vuelidate requiredIf is not working with checkbox
I am trying to make a field required if feature is enabled(if you select checkbox).
But that validation is not triggering by click on select/unselect checkbox

Meenakshi Khandelwal
- 173
- 1
- 2
- 14
3
votes
0 answers
Vue.js validator reset specific validator
I have a template which contains multiple forms which all have their own validator. When I have submitted the form I'd like to reset the validator.
From what I've read from the documentation you can only use the this.$resetValidation(); method which…

Jamie
- 3,031
- 5
- 36
- 59
2
votes
1 answer
How to use validator in vue using setup script, typscript and the composition API
I have the following code example from a tutorial and I try to figure out how to use a validator in a similar way as the example, using the script setup, typescript and the composition API.
props: {
image: {
type: String,
default:…

rgutt
- 43
- 5
2
votes
1 answer
Cannot validate fields in vue.js
I have dynamic fields generated on my form, All the validations that are to be set are retrieved from database (i.e. whether the field is required or optional and numeric value or string are all saved in database), Now when the page is rendered i…

user3653474
- 3,393
- 6
- 49
- 135
2
votes
1 answer
Vuelidate validate a bootstrapvue / vue form field on click action
I'm creating a signup form which verifies if a login_id selected by the user is available on the server.
This form is on bootstrapvue.

Naveen Karnam
- 433
- 2
- 9
- 26
2
votes
0 answers
Use dynamic rules with Vue Validator
I'm using Vue.js with Vue Validator and I'm trying to implement some dynamic validation. By this I mean the set of rules for a particular form field may change as a result of the rule being bound to a dynamic or computed variable. This is what I…

harryg
- 23,311
- 45
- 125
- 198
1
vote
0 answers
vue3 composition api vuevalidate
I am using vue 3 and vueValidate to validate my form. https://vee-validate.logaretm.com/v4/guide/composition-api/api-review
Here is my simple form.
If the the input filed is empty, it should show error and if the input field is not empty it should…

john
- 25
- 4
1
vote
1 answer
How to prevent nuxt auth to go to error page if the pass or email is wrong
I'm using NuxtJs v2.13 with its auth module and Laravel with passport for my backend. for login i use the documented method:
async signIn(formData){
await this.$auth.loginWith('local',{
data: formData
})
if(this.$auth.user.depth > 1){
…

Mojtaba Barari
- 1,127
- 1
- 15
- 49
1
vote
1 answer
Build custom error message from vue validators
My template contains 2 fields called text, email. The template look as shown below
HTML
Vue - Validations