Questions tagged [vuelidate]

Use this tag to ask questions related to the validation library vuelidate.

Vuelidate is a simple, lightweight model-based validation for Vue.js 2.0

348 questions
0
votes
1 answer

how do I fix a library add error in vue.js

I have a problem installing the Vuelidate vue library in an existing project and in the two commands npm install --save vuelidate or npm i vuelidate and this error would someone ask me to help please? I already imported it in the main.js, I just…
0
votes
1 answer

Vuelidate match / sameAs but ignore case sensitivity?

I'm using vuelidate on a form and have two inputs "First Name" and "Last Name" then in another section of the form is another input that combines the two "first name last name" and the must match which is working fine and validates. What I would…
hendy0817
  • 979
  • 2
  • 20
  • 47
0
votes
1 answer

How to pass value to a helper function?

I'm trying to create a helper function that I can reuse in my application to validate a date object. date.js export default { methods: { dateValidation (date) { console.log('date :', date) return false } …
Peter Boomsma
  • 8,851
  • 16
  • 93
  • 185
0
votes
1 answer

Use Vuelidate on a v-model with array

I am using vuelidate (https://vuelidate.js.org/) on select option to require and it works when the v-model has a single name $v.selectedWorkflow.$model
0
votes
1 answer

Vuelidate & Tailwind: Why am I always seeing invalid errors?

For the life of me I cannot seem to understand why I am always seeing the validation error(s). The logic is working great, it seems to all be in my :class binding(s) that I've got it all wrong. I know I'm going to feel really silly when I get this…
Damon
  • 4,151
  • 13
  • 52
  • 108
0
votes
1 answer

Vuelidate never v.dirty always true even if all requirements are met

Showing only relevant code, if more is needed tell me. My problem is that even when a name is entered to the text-field. I cannot go to the next card since !this.$v.$invalid never becomes false.. I have no idea what i am missing here.. Note that the…
EmbeddedOS
  • 173
  • 6
  • 18
0
votes
0 answers

How do I use Vuelidate with a custom validator?

I’m trying to validate a 6 digit code with vuelidate. If this.validationcode equals false I want to show a validation error. I'm pretty new to vue so I'm not entirely sure where I'm going wrong. How do I get this to work? The error I get…
deeej
  • 357
  • 1
  • 6
  • 22
0
votes
1 answer

Vue Vuelidate to validate unique value based on data from server

I am trying to create a form with vuelidate. In one field I would like to check if the name is taken or not. I have some async methods to get names and ids from the server and assigning them to arrays, and I have a custom validator that checks if…
0
votes
2 answers

Form inputs don't get validated while typing (@input), only @blur works

I'm using a combobox with input data validation (Vuelidate):