Adding custom form action button

How can i make to add new custom form action button at create page.
Solution:
I get it. The solution is ```
protected function getFormActions(): array { return [ $this->getCreateFormAction(),...
Jump to solution
1 Reply
Solution
Phone Myat
Phone Myat14mo ago
I get it. The solution is

protected function getFormActions(): array
{
return [
$this->getCreateFormAction(),
Action::make('saveAndBook')
->label('Save & Register booking')
->action(function(){
dd('hello');
}),
$this->getCancelFormAction(),
];
}

protected function getFormActions(): array
{
return [
$this->getCreateFormAction(),
Action::make('saveAndBook')
->label('Save & Register booking')
->action(function(){
dd('hello');
}),
$this->getCancelFormAction(),
];
}
at the create or edit page
Want results from more Discord servers?
Add your server