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
You can override the
getFormActions()
method on the page classI can't find much info on that method in docs. Any example? Like how to show it only when wizard is on last step.
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?Second example here is related :
https://filamentphp.com/docs/3.x/panels/resources/editing-records#custom-actions
Are you using wizard in the resource?
https://filamentphp.com/docs/3.x/panels/resources/creating-records#using-a-wizard