© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
7 replies
Patrick

Widget Table Action with modal form - dispatch refresh event not working

Hi all,

I have a Table Widget with two Actions, while the participate action is refreshing the Widget, the participateProxy action does not.

So "participate" works, "participateProxy" not.

Any Idea?

Action::make('participate')
                    ->iconButton()
                    ->icon(hero('user-plus'))
                    ->color('success')
                    ->label(__('realty.meeting.in-person'))
                    ->tooltip(__('realty.meeting.in-person'))
                    ->action(function (RealtyMeetingCurrentOwner $record) use ($meeting) {
                        $meeting->addParticipant(Owner::find($record->owner_id), Contact::find($record->contact_id));

                        $this->dispatch('refreshComponent');
                        self::notifySuccess();
                     }),

Action::make('participateProxy')
                    ->disabled(fn () => $meeting->participantsInPerson->isEmpty())
                    ->iconButton()
                    ->label(__('realty.meeting.is-proxy'))
                    ->tooltip(__('realty.meeting.is-proxy'))
                    ->color('secondary')
                    ->icon(hero('document-plus'))
                    ->modalWidth('md')
                    ->modalHeading(__('realty.meeting.is-proxy'))
                    ->form($this->participationFormSchema())
                    ->action(function (?RealtyMeetingCurrentOwner $record, ?array $data) {
                        $this->addParticipant($record, $data);
                        self::notifySuccess();
                    })
                    ->after(fn () => $this->dispatch('refreshComponent') ),
Action::make('participate')
                    ->iconButton()
                    ->icon(hero('user-plus'))
                    ->color('success')
                    ->label(__('realty.meeting.in-person'))
                    ->tooltip(__('realty.meeting.in-person'))
                    ->action(function (RealtyMeetingCurrentOwner $record) use ($meeting) {
                        $meeting->addParticipant(Owner::find($record->owner_id), Contact::find($record->contact_id));

                        $this->dispatch('refreshComponent');
                        self::notifySuccess();
                     }),

Action::make('participateProxy')
                    ->disabled(fn () => $meeting->participantsInPerson->isEmpty())
                    ->iconButton()
                    ->label(__('realty.meeting.is-proxy'))
                    ->tooltip(__('realty.meeting.is-proxy'))
                    ->color('secondary')
                    ->icon(hero('document-plus'))
                    ->modalWidth('md')
                    ->modalHeading(__('realty.meeting.is-proxy'))
                    ->form($this->participationFormSchema())
                    ->action(function (?RealtyMeetingCurrentOwner $record, ?array $data) {
                        $this->addParticipant($record, $data);
                        self::notifySuccess();
                    })
                    ->after(fn () => $this->dispatch('refreshComponent') ),


Thanks
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

table action modal form refresh?
FilamentFFilament / ❓┊help
2y ago
Dispatch event not working on action
FilamentFFilament / ❓┊help
3y ago
Widget with Modal Action
FilamentFFilament / ❓┊help
3w ago
Modal Action in Form with Table Modal Body
FilamentFFilament / ❓┊help
9mo ago