F
Filament2y 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
You can override the getFormActions() method on the page class
xy
xyOP2y 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
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?

Did you find this page helpful?