felte icon indicating copy to clipboard operation
felte copied to clipboard

How to know if the form was submitted?

Open RahulBadenkal opened this issue 3 years ago • 1 comments

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.

RahulBadenkal avatar Oct 10 '22 02:10 RahulBadenkal

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.

pablo-abc avatar Oct 24 '22 21:10 pablo-abc