Why is the create button still rendering below even though I used a wizard?

hello i have an issue when i want to using Wizard form there's a button below that i want to remove the button create , create&another and cancel.
No description
No description
No description
No description
9 Replies
J3R1CH0
J3R1CH0OP2mo ago
only available is on the last step.i have next button in form and submit on last step.I want to remove the button create , create&button and cancel
Bruno Pereira
Bruno Pereira2mo ago
If you're using a form you can try to hide the actions with this
protected function getFormActions(): array
{
return [];
}
protected function getFormActions(): array
{
return [];
}
J3R1CH0
J3R1CH0OP2mo ago
Got it!.Thank you👌 @Bruno Pereira I just wanted to ask what if how I can add a reset button to the form in wizard?
Bruno Pereira
Bruno Pereira2mo ago
instead of return [] you can return any action you want. but it will appear on every step
J3R1CH0
J3R1CH0OP2mo ago
like this?
No description
J3R1CH0
J3R1CH0OP2mo ago
i can't render the button..Sorry, im a beginner in Laravel-Filament
Bruno Pereira
Bruno Pereira2mo ago
Are you importing the right Action? It should be use Filament\Actions;
protected function getFormActions(): array
{
return [
Actions\Action::make('View Result')
->color('primary')
->url(fn(Result $record) => url(ViewResult::getUrl(), $record)),
];
}
protected function getFormActions(): array
{
return [
Actions\Action::make('View Result')
->color('primary')
->url(fn(Result $record) => url(ViewResult::getUrl(), $record)),
];
}
This is an aexample
J3R1CH0
J3R1CH0OP2mo ago
Got it!Thank you so much for all your help buddy!👌
Want results from more Discord servers?
Add your server