Questions tagged [vue-validator]

Validator component for Vue.js

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
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:…
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…
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
Shankar
  • 2,565
  • 8
  • 29
  • 56
1
vote
0 answers

Vuetify - How to validate array of inputs

I've a following field in the form, and user can create/add another field for the address. How can I validate all fields with name=address
Sasha
  • 8,521
  • 23
  • 91
  • 174
1
vote
1 answer

Vue-Validator form validation not working on JS Fiddle

I want to ask a question concerning vue-validator but it is not working on JSFiddle. Can someone please help me check what the issue is so that I can go ahead and ask the main question See JSFiddle Html:
Mover
  • 169
  • 12
1
vote
1 answer

Vue validator multiple input field

how can i validate a form group (select + input text) that require at least one of the two with vue-validator.js? Thanks.. e.g.