Vee-validate: Show Errors only on submit

Created on 5 Mar 2018  ยท  2Comments  ยท  Source: logaretm/vee-validate

Versions:

  • VueJs: #.#.#
  • Vee-Validate: #.#.#

Description:

I want to stop showing validations before submit button is click. i mean when a person fills in correct data of make the required field empty vee-Validate will not show error on that time instead is show errors when a person clicks on submit button i have validation check function before submit and its working fine. I just want to stop showing errors before submit

โ” question

Most helpful comment

You can define the events option in the config as an empty string:

Vue.use(VeeValidate, {
 events: ''
});

which will disable all listening behaviors, then you should use $validator.validate() to validate your inputs manually.

All 2 comments

You can define the events option in the config as an empty string:

Vue.use(VeeValidate, {
 events: ''
});

which will disable all listening behaviors, then you should use $validator.validate() to validate your inputs manually.

@logaretm Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

saintplay picture saintplay  ยท  3Comments

MeltedFreddo picture MeltedFreddo  ยท  3Comments

yyyuuu777 picture yyyuuu777  ยท  3Comments

the94air picture the94air  ยท  3Comments

Etheryte picture Etheryte  ยท  3Comments