F
Filament16mo ago
xy

Hide create button on resource creation form with wizard

I'm using a wizard on a form. I have followed the steps here to add my own submit action: https://filamentphp.com/docs/3.x/forms/layout/wizard#rendering-a-submit-button-on-the-last-step How can i hide the default 'create' button at the bottom of the form? I managed to hide the create another using the following on the CreateResource page: $canCreateAnother = false
5 Replies
Patrick Boivin
Patrick Boivin16mo ago
You can override the getFormActions() method on the page class
xy
xyOP16mo ago
I can't find much info on that method in docs. Any example? Like how to show it only when wizard is on last step.
Patrick Boivin
Patrick Boivin16mo ago
Yeah, I'm not sure this is in the docs... it's a method on the page class (e.g. CreatePost). Do you still need to show the form actions if you're using a submit button on the last step?
Want results from more Discord servers?
Add your server