© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
1 reply
Dustin

Chain table row actions

I have a table with 1 row actions, the goal what i want to achieve is to open the by clicking on it action, after the submit i want to open the next row action automaticly (so without clicking on the next row action).

Example of my action (see the replaceMountedTableAction)
                Action::make('handle_row')->form([
                    Grid::make(2)->schema([
                        TextInput::make('rma.id')->default(function (
                            RmaRow $row
                        ) {
                            return $row->id;
                        })->disabled(),
                    ]),
                ])->closeModalByClickingAway(false)->action(function () {
                    $this->replaceMountedTableAction('handle_row', '12199');
                }),
                Action::make('handle_row')->form([
                    Grid::make(2)->schema([
                        TextInput::make('rma.id')->default(function (
                            RmaRow $row
                        ) {
                            return $row->id;
                        })->disabled(),
                    ]),
                ])->closeModalByClickingAway(false)->action(function () {
                    $this->replaceMountedTableAction('handle_row', '12199');
                }),


In the submit function I have implemented the replaceMountedTableAction. But that part is not working, It is showing the backdrop, but the modal is not visible.

So i tried to open a row programmaticly. That part is working well, so no issues there.
    <button wire:click="replaceMountedTableAction('handle_row', '12199')">
        Button
    </button>
    <button wire:click="replaceMountedTableAction('handle_row', '12199')">
        Button
    </button>


Then I tried to chain an action with another name, that part also works:
                Action::make('handle_row')->form([
                    Grid::make(2)->schema([
                        TextInput::make('rma.id')->default(function (
                            RmaRow $row
                        ) {
                            return $row->id;
                        })->disabled(),
                    ]),
                ])->closeModalByClickingAway(false)->action(function () {
                    $this->replaceMountedTableAction('test', '12199');
                }),
                Action::make('handle_row')->form([
                    Grid::make(2)->schema([
                        TextInput::make('rma.id')->default(function (
                            RmaRow $row
                        ) {
                            return $row->id;
                        })->disabled(),
                    ]),
                ])->closeModalByClickingAway(false)->action(function () {
                    $this->replaceMountedTableAction('test', '12199');
                }),


Action::make('test')->closeModalByClickingAway(false)->action(function () {
                   
                }),
Action::make('test')->closeModalByClickingAway(false)->action(function () {
                   
                }),


So it seems like there is an issue with chaining the same action for another record. Is this a bug or not possible?
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

Conditional Table Row Actions
FilamentFFilament / ❓┊help
3y ago
Defer the table row actions rendering?
FilamentFFilament / ❓┊help
11mo ago
Align Top for Table Row Actions
FilamentFFilament / ❓┊help
3y ago
Table actions on separate row - without split?
FilamentFFilament / ❓┊help
3y ago