Can't access data with $get between Wizard steps
Hi, how can I access the data from the previous step in my wizard ?
$get don't work and I don't understand why π¦
7 Replies
Can you share your code as I am using $get for this and having 0 issues.
@Lederp Yes so I'm using the Wizard for creating record of SheetResource, my code is structured like the documentation example https://filamentphp.com/docs/3.x/panels/resources/creating-records#using-a-wizard (getSteps() into CreateSheet class and function for every section of the form in my SheetResource class and called into the getSteps() class)
So for the $get, I have in the first step of the Wizard a field named 'days' which is a number of days (for example : 4), and in the next step I have a repeater named 'schedule'. So what I try to achieve is to set the number of repeater instance by default with the days value
Where the 'days' value is (in the step 1 of the wizard):
Where the repeater 'schedule' is (in the step 2 of the wizard) :
For helping me visualizing the days value in the next step, I have setup a dummy field which display the value ('test_day' field)
But here you can see the value of days is 4 but the repeater have 0 default instance (under 'programme' = 'schedule')