F
Filament15mo 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
tesse0515mo 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
ded7978OP15mo ago
thank u so much
krekas
krekas15mo ago
Mark answer as answered
Want results from more Discord servers?
Add your server