FilamentF
Filament2y ago
Reda

Hide "save changes" button in form wizard

I have made an auto save form.
But i don't know how to hide the "save changes" button, because it is not necessary in my case
image.png
Solution
I think instead of using HasWizard trait, you could use the Wizard field in the pages or resource:

public function form(Form $form): Form
{
    return $form->schema([
        Wizard::make([
            Step::make('step1')
                ->schema([
                  ...
                ]),
            Step::make('step2')
                ->schema([
                    ...
                ]),
        ]),
    ]);
}
Was this page helpful?