F
Filament17mo 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
tesse0517mo 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
ded7978OP17mo ago
thank u so much
krekas
krekas17mo ago
Mark answer as answered

Did you find this page helpful?