© 2026 Hedgehog Software, LLC

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

Conditionally displaying delete action in a Repeater based on row

Hello,

My model has a "active" field that should enable/disable the deletion of the element in the repeater.

I know that there's a
->deleteAction(fn ($action) => ...)
->deleteAction(fn ($action) => ...)
function, but I haven't been able to figure out how to inject the current row. I tried with
$state
$state
but the whole repeater array is included instead.

Is there a way to accomplish this?
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

Delete Action Table Repeater.
FilamentFFilament / ❓┊help
16mo ago
Repeater inline delete action
FilamentFFilament / ❓┊help
2y ago
Repeater: show delete button on each line conditionally
FilamentFFilament / ❓┊help
3y ago
Before method in repeater delete action
FilamentFFilament / ❓┊help
16mo ago