Watching form for validity #3335
Unanswered
Bond-Addict
asked this question in
Q&A
Replies: 1 comment 30 replies
-
Hi, @Bond-Addict. You can try to use <va-form ref="myForm" /> const { isValid } = useForm('myForm')
watch(isValid, console.log) |
Beta Was this translation helpful? Give feedback.
30 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does anyone know if its possible to watch the va-form for validity? I know you can manually call
.validate()
after creating a ref for the form, but I was wanting to have behavior like I could do in angular. If the form isnt valid I would like to either hide the submit button or disable it. So far I don't see a way in the docs. In angular you could just check forformGroup.invalid
orformGroup.valid
which would update automatically when all validation conditions were satisfied.TIA!
Beta Was this translation helpful? Give feedback.
All reactions