© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•17mo ago•
4 replies
KM Nurunnabi

Disabling action realtime on state change

hey there. I have a custom action in edit resource page given below
 Actions\Action::make('someAction')
                    ->action(function () {
                    })
                    ->disabled(fn(?Model $record) => $record->isDirty())
                    ->outlined()
                    ->hidden(fn(?Model $record) => $record?->trashed()),
 Actions\Action::make('someAction')
                    ->action(function () {
                    })
                    ->disabled(fn(?Model $record) => $record->isDirty())
                    ->outlined()
                    ->hidden(fn(?Model $record) => $record?->trashed()),

What i want, whenever record get dirty I want to disable it. But following code is not reflecting in realtime on state change. what can I do here?
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

SelectAction state change action
FilamentFFilament / ❓┊help
3y ago
Disabling Submit Action on Action With Custom Modal
FilamentFFilament / ❓┊help
3y ago
Trigger Action on state update
FilamentFFilament / ❓┊help
3y ago