© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3mo ago•
12 replies
David | Fortune Validator

Dispatch Table Record Action

Hi all

I wondered if its possible to dispatch a table record action from another location.

I know we can do this via URL
?tableAction=view_prices&tableActionRecord=84
?tableAction=view_prices&tableActionRecord=84


but that requires a refresh so I'd like to do this without if possible.

I'd like to go something like $this->dispatch('xxx');

thanks everyone.
Solution
Add to your ListPage
use Livewire\Attributes\On;

#[On('openTableRow')]
public function openTableRow(string $id): void
{
    $this->mountAction('view_prices', [], [
        'table' => true,
        'recordKey' => $id
    ]);
}
use Livewire\Attributes\On;

#[On('openTableRow')]
public function openTableRow(string $id): void
{
    $this->mountAction('view_prices', [], [
        'table' => true,
        'recordKey' => $id
    ]);
}


You can dispatch it using
Action::make('open')
    ->dispatch('openTableRow', ['id' => '84'])
Action::make('open')
    ->dispatch('openTableRow', ['id' => '84'])
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

Dynamic table record Action label
FilamentFFilament / ❓┊help
4mo ago
Table Action always the same record
FilamentFFilament / ❓┊help
2y ago
Remove/Disable record action on table
FilamentFFilament / ❓┊help
3y ago
Use $record in table action form
FilamentFFilament / ❓┊help
3y ago