Preserve data across form wizard steps
I have a 2 step form wizard, with a
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?Solution:Jump to solution
$get('../../meal_type_id')
?
https://filamentphp.com/docs/3.x/forms/fields/repeater#using-get-to-access-parent-field-values...3 Replies
I have also tried to
Get
the meal_type_id
directly, but I only get null
on step 2.Solution
Wow, I read this documentation, but when I read it I thought parent meant fields within the repeater, so I didn't try this. Thank you so much!!