FormKit Multi-Step referencing values from another step? #1219
Replies: 3 comments 8 replies
-
One way is to make it the same name, so the value will also be passed to it. |
Beta Was this translation helpful? Give feedback.
-
So currently I have my steps in separate components like below
I want to get the reactive data from the first step component, inside of the second one. I need to use values from previous steps to determine what to show in a current step. How would I do this? @fenilli |
Beta Was this translation helpful? Give feedback.
-
Thanks for the idea @fenilli , for anyone else wondering how I managed to fix this. I used vue's "defineModel" function to data bind an object from the parent too all the steps. Then in any of the steps I'm able to access the same data. Worked like a charm. |
Beta Was this translation helpful? Give feedback.
-
I have a multi-step form, there is a step where I am taking in documents, however the documents that I require are dependent on the response from a previous step. How can I require a field in one step based on the value of a field from another step?
Beta Was this translation helpful? Give feedback.
All reactions