© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Wim

Open Edit modal from Action Group

I have a Filament table in my resource. When I click on a row, a View modal opens. This is because of the recordUrl and recordAction in below snippet.
When I click on an 'edit' action in the action group, it opens the edit page but I also want it to open as an (edit) modal. How can I do this?

->actions([
          ActionGroup::make([ 
                    Tables\Actions\EditAction::make(),
                    Tables\Actions\ViewAction::make() ,
            ])
             ->button()
             ->icon('heroicon-m-ellipsis-horizontal')
     ])
      ->recordUrl(null)
       ->recordAction(Tables\Actions\ViewAction::class);
->actions([
          ActionGroup::make([ 
                    Tables\Actions\EditAction::make(),
                    Tables\Actions\ViewAction::make() ,
            ])
             ->button()
             ->icon('heroicon-m-ellipsis-horizontal')
     ])
      ->recordUrl(null)
       ->recordAction(Tables\Actions\ViewAction::class);


Note: when I change the
(Tables\Actions\ViewAction::class);
(Tables\Actions\ViewAction::class);
to
(Tables\Actions\EditAction::class);
(Tables\Actions\EditAction::class);
it opens indeed the edit modal. But I don't want it to open when clicking a row, I want it to open when the Edit is clicked in the ActionGroup.
Solution
Remove the editPage in the getPages() method of your resource
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Open modal from edit table action
FilamentFFilament / ❓┊help
3y ago
Open action modal
FilamentFFilament / ❓┊help
3y ago
Open action modal from dropdown item
FilamentFFilament / ❓┊help
3y ago
Extra modal actions, trigger edit modal action and open link
FilamentFFilament / ❓┊help
3y ago