This content originally appeared on DEV Community and was authored by JohnDivam
Override the submitAction dynamically in the Page class
If you’re in a CreatePage or EditPage, you can control visibility like this:
class CreatePage extends CreateRecord
{
protected static string $resource = PageResource::class;
//add this
public function getFormActions(): array
{
return [
];
}
}
And in your PageForm :
Wizard::make([
...
])
->submitAction(view('filament.submit-button'))
// in resources\views\filament\submit-button.blade.php
<div
x-data
x-transition
>
<x-filament::button
type="submit"
color="primary"
class="fi-btn"
>
Submit
</x-filament::button>
</div>
This content originally appeared on DEV Community and was authored by JohnDivam
JohnDivam | Sciencx (2025-10-28T10:19:50+00:00) Filament: Hide Submit and Cancel Buttons in wizard. Retrieved from https://www.scien.cx/2025/10/28/filament-hide-submit-and-cancel-buttons-in-wizard/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.