Disable back button for wizard on modal

No description
3 Replies
Alexandre
Alexandre4w ago
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-7702242
GitHub
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...
NothingToSay
NothingToSayOP4w ago
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
toeknee
toeknee4w ago
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.
Want results from more Discord servers?
Add your server