© 2026 Hedgehog Software, LLC

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

Dynamic actions with modal

Hi, how can I create dynamically Actions in a custom page, where each of the actions opens a modal?

When I did some testing, it worked if I just created a method like
testAction() { // return action }
testAction() { // return action }


ANd rendered it using
{{ $this->testAction }}
{{ $this->testAction }}
.

However when creating them dynamically (based on an array of records for example that can change), it stops working. The action is rendered, but modals don't open anymore.

I guess it has something to do with the internals of the
InteractsWithActions
InteractsWithActions
trait and how the mounted actions / modals are stored, but is there any way to enable this in current filament version?
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

Modal with dynamic actions
FilamentFFilament / ❓┊help
17mo ago
Modal Actions
FilamentFFilament / ❓┊help
3y ago
Issue with modal in actions
FilamentFFilament / ❓┊help
3y ago
Edit modal actions
FilamentFFilament / ❓┊help
3y ago