F
Filamentβ€’7mo ago
zydnrbrn

Get Current Step on Wizard

Hi guys, im so confused how to get current step on wizard nextAction, is there have a solution? for example if current step is on Delivery, i wanna disabled next button after validation has clear. Thank you
No description
5 Replies
Mauricio G
Mauricio Gβ€’2mo ago
I also need it, and I couldn't get it, did you happen to get it?
toeknee
toekneeβ€’2mo ago
You can't go to next unless validation has passed, so why disable it?
neverything
neverythingβ€’2mo ago
Haven't used the Wizard yet, but if you can turn on the persistStepInQueryString you should be able to get the current step using request()->query($this->getStepQueryStringKey()) Have a look at https://github.com/filamentphp/filament/blob/fe0cdd1ef29f3ea09fcff96af9f0e82b7e9bab70/packages/forms/src/Components/Wizard.php#L218-L233, maybe there is a simpler way.
GitHub
filament/packages/forms/src/Components/Wizard.php at fe0cdd1ef29f3e...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
zydnrbrn
zydnrbrnβ€’5w ago
Now the application development period is complete sir πŸ˜… , and yeah im use validation for solving my problems i think the tricks that say on the top worth to try
Mauricio G
Mauricio Gβ€’4w ago
Thanks Thanks
Want results from more Discord servers?
Add your server
More Posts