Closed rkrishnamoorthy closed 8 years ago
Find the form instance using v-ref
, and check the length of the errors
property.
canSubmit: function() {
return !this.$refs.form.errors.length;
}
I plan to add an hasErrors
or isValid
method to do the same.
Thank you ! worked perfectly
Hi I have a question. I would like to disable the submit button on a form if the form has errors. But i would like to do it based on a computed field which looks at the field and also a values of a few other fields and then indicates whether the submit button should be enabled