© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
16 replies
charliefortune

How can I get the ID of the deleted item in a repeater action?

I can't work out how to get the ID of the deleted item in the delete action that is attached to my repeater. The $state parameter has the entire state of the repeater (e.g. all items), have I attached my action to the wrong component perhaps?

Code looks like this...

```Repeater::make('eventQuestionnaires')
->label(__('Questionnaires'))
->relationship()
->deleteAction(
function (Action $action) {
$action->requiresConfirmation()
->action(function(Repeater $component, callable $get, $state){
ray($component);
ray($state);
})
->modalSubmitActionLabel('Remove');
},
)
->schema([
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

Repeater item id
FilamentFFilament / ❓┊help
2y ago
How do I get the values of the latest item in a repeater?
FilamentFFilament / ❓┊help
3y ago
Is it possible to get the future id of item in repeater?
FilamentFFilament / ❓┊help
3y ago
Get the index of current repeater item
FilamentFFilament / ❓┊help
12mo ago