Validation

Form Validation

If you need Form Validation you have to wrap v-form-base with v-form and take the reference of v-form for working on.

If you want to avoid a reload, then you have to define @submit.prevent

<v-form ref="formbase" v-model="formValid" lazy-validation @submit.prevent>
    <v-form-base :model="myModel" :schema="mySchema" @input="handleInput"/>
</v-form>
validate () {
  this.$refs.formbase.validate()
},

resetValidation () {
  this.$refs.formbase.resetValidation()
},

Last updated