3 Replies
Hi.
You have this method :
->previousAction()
So you can try that :
->previousAction(fn (Action $action): Action => $action->extraAttributes(['class' => 'hidden']))
Cf. https://github.com/filamentphp/filament/discussions/9942#discussioncomment-7702242GitHub
How hide next Action in wizard? · filamentphp filament · Discussion...
How can I hide the next button in the wizard? I tested with the following code, but it didn't work. Wizard::make() ->schema([ $this->getStepOne(), $this->getStepTwo(), $this->getSte...
there's no previousAction on steps
https://filamentphp.com/docs/3.x/actions/modals#using-a-wizard-as-a-modal-form
i also tried making it into
form([
Wizard::make([])->previousAction(fn (Action $action): Action => $action->extraAttributes(['class' => 'hidden']))
])
and im getting an error
That's really interesting actually, we do have previousAction but not in steps as you suggested.
I would just target it with some CSS. Or do a Pr to add modifyWizard or similar.