© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
2 replies
zainalab

Table recordActions / Action condition

I want to create a condition on
deleteAction
deleteAction
, if
$record->is_default
$record->is_default
then
deleteAction
deleteAction
button is not available. But on V4 it doesn't work properly. Is this a bug issue?

...
->recordActions([
  EditAction::make(),
  DeleteAction::make()
      ->hidden(fn (Model $record): bool => $record->is_default),
])
...
...
->recordActions([
  EditAction::make(),
  DeleteAction::make()
      ->hidden(fn (Model $record): bool => $record->is_default),
])
...
111.png
222.png
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

Injected $record the same for each recordActions Action
FilamentFFilament / ❓┊help
4w ago
Table Action
FilamentFFilament / ❓┊help
3y ago
Set column action on condition
FilamentFFilament / ❓┊help
3y ago
testing table action
FilamentFFilament / ❓┊help
2y ago