F
Filament16mo ago
ded7978

How can I create another button next to "Create" in "Create Form"

Is it possible to create a button right here. I tried to use getActions but it creates buttons on top. I need to create a button that saves "Sending" and immediately send it. I have a dispatch function. Maybe my question is stupid, but I haven't found an answer on the Internet
3 Replies
tesse05
tesse0516mo ago
on your "CreateResource" page, add method:
protected function getFormActions(): array
{
$actions[] = \Filament\Pages\Actions\Action::make('test')
->label('test');


return array_merge(parent::getFormActions(),$actions);
}
protected function getFormActions(): array
{
$actions[] = \Filament\Pages\Actions\Action::make('test')
->label('test');


return array_merge(parent::getFormActions(),$actions);
}
ded7978
ded7978OP16mo ago
thank u so much
krekas
krekas16mo ago
Mark answer as answered
Want results from more Discord servers?
Add your server