Preserve data across form wizard steps
I have a 2 step form wizard, with a
This is what I have tried so far.
In the
Then in my repeater function in step 2, I want to
But it seems like the data is not preserved from step 1 to step 2. What am I doing wrong?
meal_type_id field in step 1, which I want to preserve for step 2. This is what I have tried so far.
In the
meal_type_id field, I have tried to set the $state to a selected_meal_type_id variable like so:Then in my repeater function in step 2, I want to
Get this data in a Select field:But it seems like the data is not preserved from step 1 to step 2. What am I doing wrong?