How to access and store FormKit's internal form state in a ref? #1580
Closed
vicentematus
started this conversation in
General
Replies: 1 comment 2 replies
-
I would recommend using Then you can access it pretty simply: context.state |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to track FormKit's form state (valid/invalid/dirty) in a Vue ref to use it in other parts of my component. For example, If I want to know if the entire form is valid or no (boolean).
Current Setup
What I've Tried
This works in the template but I need to store/access this state in the script.
But I can't seem to grasp where I can access the internal store of the form.
Question
What's the recommended way to:
Environment
Beta Was this translation helpful? Give feedback.
All reactions