© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
Davide Cariola

Hide create button in a form with wizard

Hi everyone!

I'm using a Wizard in a form when creating a resource. My submit button is at the last step of the wizard, so I need to hide the default button of the form.

I was following this documentation: https://filamentphp.com/docs/3.x/panels/resources/creating-records#adding-a-create-action-button-to-the-header

And wrote this:
protected function getFormActions(): array
{
    return [];
}
protected function getFormActions(): array
{
    return [];
}


But still the buttons persists, as in the image.

Any tip? Thank you so much!
image.png
Creating records - Panel Builder - Filament
Solution
Hi @Vp, got it in the morning. The problem was that I was using the method in the wrong place 😄

Thank you so much for the tip.

For others:
//App\Filament\Resources\MyResource\Pages\CreateResource.php
protected function getFormActions(): array
{
    return [
        $this->getCancelFormAction(),
    ];
}
//App\Filament\Resources\MyResource\Pages\CreateResource.php
protected function getFormActions(): array
{
    return [
        $this->getCancelFormAction(),
    ];
}


this hides every button except the one you choose to show (you can find the methods in the CreateRecord class
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Hide create button on resource creation form with wizard
FilamentFFilament / ❓┊help
3y ago
Hide "save changes" button in form wizard
FilamentFFilament / ❓┊help
2y ago
Hide button create & cancel on wizard
FilamentFFilament / ❓┊help
2y ago
create button on wizard in modal, hide until end
FilamentFFilament / ❓┊help
17mo ago