© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Phone Myat

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(),
            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
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Adding Action Buttons to Custom Page for Form Navigation
FilamentFFilament / ❓┊help
2y ago
form action button alignment
FilamentFFilament / ❓┊help
8mo ago
form button with action
FilamentFFilament / ❓┊help
2y ago
Add Button Form Action
FilamentFFilament / ❓┊help
2y ago