Questions tagged [vee-validate]

For question related with VeeValidate library for Vue.js.

VeeValidate is a validation library for Vue.js. It has plenty of validation rules out of the box and support for custom ones as well. It is template based so it is similar and familiar with the HTML5 validation API. You can validate HTML5 inputs as well as custom Vue components.

It is also built with localization in mind.

610 questions
0
votes
1 answer

Require and Regex with vee-validate

I'm attempting to set a required and regex attributes with vee-validate. The regex bit works fine, but as soon as I add the required attribute the entire control disappears from the form. This works fine (fiddle), but missing required attribute…
a coder
  • 7,530
  • 20
  • 84
  • 131
0
votes
1 answer

Prompt before leaving page with vee-validate

Trying to set up a basic "Are you sure you want to leave this page" type prompt on a page containing a simple html form. Form:
a coder
  • 7,530
  • 20
  • 84
  • 131
0
votes
1 answer

Confirmed rule with veeValidate VueJS: can't find the ref?

I have a problem with VueJS and using Vee-validate. I am trying to confirm a password regarding another one but it feels like it can't find the ref of password. I am using ref and have been looking for all the existent issues but it still does not…
Angele
  • 31
  • 3
0
votes
1 answer

Function returning true despite promise evaluating to false

I'm having a real hard time figuring out the behaviour of Promises. I'm using Vue and the vee-validate library, which allows for manual validation of a form via: this.$validator.validate() However, when I try to use it I get weird behaviour: async…
Darkstarone
  • 4,590
  • 8
  • 37
  • 74
0
votes
1 answer

VueJs Vee-Validate incorrect email validation

Versions vee-validate: 2.1.0-beta.2 vue: 2.5.7 Description Used the email validation but it doesn't consider some valid emails such as: admin@gmail.com It…
0
votes
1 answer

VeeValidate: "errors" does not exist in template

I'm trying to use VeeValidate to validate fields in a Vue form using Vue 2.5 and VeeValidate 2.1. Following the documentation, I'm validating a field like this:
yvoloshin
  • 378
  • 6
  • 18
0
votes
1 answer

Vuejs + VeeValidate passing paramets to child component

I have created a component called Month where I pass some props: