Need to retrieve field from wizard step before

I need to get a field value from a step before in a wizard step form. I need this value for some live calculations. When I am dd($get) I get all the childcomponents, but I dont know how to access them. If I collapse all the things ($get) gives me I see
#childComponents: array:4 [▼
0 =>
Filament\Forms\Components\Wizard
\
Step {#2923 ▶}
1 =>
Filament\Forms\Components\Wizard
\
Step {#3087 ▶}
2 =>
Filament\Forms\Components\Wizard
\
Step {#2595}
3 =>
Filament\Forms\Components\Wizard
\
Step {#2369 ▶}
]
#childComponents: array:4 [▼
0 =>
Filament\Forms\Components\Wizard
\
Step {#2923 ▶}
1 =>
Filament\Forms\Components\Wizard
\
Step {#3087 ▶}
2 =>
Filament\Forms\Components\Wizard
\
Step {#2595}
3 =>
Filament\Forms\Components\Wizard
\
Step {#2369 ▶}
]
I need the Step with key = 1, but I really don't know how to access this step. Please someone could help.
2 Replies
ChesterS
ChesterS8mo ago
you can access the form data directly, not need to go through the steps. Eg if you have a title field , you can access it by using $get('title').
TheNastyPasty
TheNastyPastyOP8mo ago
Thank you so much this works!
Want results from more Discord servers?
Add your server