felte
felte copied to clipboard
How to know if the form was submitted?
I looked through the docs but didn't find a way to do this. I Want to know if the form was submitted, is there any variable that stores that information. Also how do i know if the form was touched? the $touched value returns an object with details whether each individual control was touched but not if the form as a whole was touched.
There's no built-in way to know if the form has been submitted. But handling something like that yourself on an onSubmit should be possible?
Regarding touched. There is an isDirty store that contains a single boolean. This gets set to true as soon as the user interacts with any input.