© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•4mo ago•
1 reply
f0xxxxxy

Mount Existing Table Action From View Record Modal

What I am trying to do: Mount a table action from the record view modal (record clicked and opened from said table), using a hintAction which sits above the form fields. The table action is named 'mark-ledgered'. This action works correctly when clicking the action from the table row itself.

What I did: The below code worked in v3. I have attempted to replace the replaceMountedTableAction with replaceMountedAction and mountAction to no avail (changing the params as required). I have tried using a prime component (text) with a htmlString button/JS to mountAction via wire:click but this does not work either.

My issue/the error: The modal is not launched/replaced like in v3. Nothing happens.

Code:
->hintActions([ 
    Action::make('open-ledgered')
        ->label(fn(Order $record):string => (($record->items->whereNotNull('ledgered_at')->count() == $record->items->count()) ? 'View Ledgered Items' : 'Mark Items Ledgered'))
        ->icon('tabler-currency-pound')
        ->action(function ($livewire, Order $record) {
            $livewire->replaceMountedTableAction('mark-ledgered', $record->id) ;
        })
])
->hintActions([ 
    Action::make('open-ledgered')
        ->label(fn(Order $record):string => (($record->items->whereNotNull('ledgered_at')->count() == $record->items->count()) ? 'View Ledgered Items' : 'Mark Items Ledgered'))
        ->icon('tabler-currency-pound')
        ->action(function ($livewire, Order $record) {
            $livewire->replaceMountedTableAction('mark-ledgered', $record->id) ;
        })
])
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

Call modal record view from anywhere.
FilamentFFilament / ❓┊help
2y ago
Action Modal little slow in record table
FilamentFFilament / ❓┊help
2y ago
Show image on table action view modal?
FilamentFFilament / ❓┊help
3y ago
table action modal
FilamentFFilament / ❓┊help
3y ago