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!
No description
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:...
Jump to solution
3 Replies
Davide Cariola
Davide Cariolaβ€’2mo ago
Thank you so much, I'll look into it!
Solution
Davide Cariola
Davide Cariolaβ€’2mo ago
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
Want results from more Discord servers?
Add your server
More Posts
Specifying navigation items order within navigation groupsHow do I specify the navigation items order withing navigation groups? I can order the navigation gUncaught Snapshot missing on Livewire component with id: QAcNIGM0wsdXZxTaZYW7Hello, I have a widget on the dashboard panel and I run into this error: ```livewire.js?id=07f2287Livewire Component Not WorkingHello, I add a livewire component consisting on a select of options. When the select changes, nothinFileupload on registration page - 419 errorFor full context, we have a Filament app with 2 panels - Admin & Member. When a member registers, anCan't login into panel when user model use uuidHello i'm using uuid's on mi user model, I have configured all what is necessary to use it but I caAuthorize Imports: Apply different policy methods on create and updateI am using `authorize` method for Importer to show it only to the users that have `create` authorizaReplicate action: load form instead of saveI was searching for a way to add ***Clone*** table action, and came across ***Replicate*** action. TFilament Shield allows create/edit/delete despite role restrictions. Shouldn't have these permissionThe Filament plugin shield still allows users to create, edit, and delete even though I have not givCheck for user profile completeHi! My user model has some extra fields that I would like to be completed. My UserPanel is like this->RenderHook() problem in AdminPanelProvider.php | Class "Filament\View\PanelsRenderHook" not foundHello. I had this same configuration in my last application two months ago and had no problems. For