Search code examples
vue.jsvuejs2vuexvue-routervee-validate

blank the field on Submit (vee-validate vue)


I'm creating a form in Vue having validation of Vee-validate. I want to make field blank on submit. But it is giving an error when I make the field blank on submit.

Can someone please help me to sort out it?

Thanks


Solution

  • You can add a small portion of code which describes better your problem.

    But you can do this with Vee-validate after submitting your form

    this.yourField = ''
    this.$validator.reset()