© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
Adam Holmes

Unable to add form actions to modal

Hi,

I've got a resource with a simple form for creating / editing. I've got a table that displays all the items on the index. Each row in the table has an edit button that opens the edit page in a modal slideover. At the bottom there is a "Save changes" and "Cancel" button.

I'd like to add an additional button to the bottom, but I'm unable to get it to show.

I added the below to my EditItem.php in the Resource Pages directory and the button didn't show.

protected function getFormActions(): array
    {
        return [
            ...parent::getFormActions(),
            Action::make('foo')->action('bar'),
        ];
    }
protected function getFormActions(): array
    {
        return [
            ...parent::getFormActions(),
            Action::make('foo')->action('bar'),
        ];
    }


I also tried
getModalActions
getModalActions
which made no difference.

If I change the page to be a separate page rather than a modal, the button does appear - but that's not what I want.

I'm at a loss, so any ideas welcome.

Thanks
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

Unable to add Actions Inside Placeholder content of edit modal form.
FilamentFFilament / ❓┊help
2y ago
add actions to form section
FilamentFFilament / ❓┊help
3y ago
Global Form/Modal Actions Alignment
FilamentFFilament / ❓┊help
2y ago
Add Edit and Delete actions to modal
FilamentFFilament / ❓┊help
3y ago