F
Filament17mo ago
Oddman

How do I prevent a single repeater item from being edited or deleted based on a particular value?

I have a case whereby a repeater item should not be deletable or editable once a particular condition is met. In this case, I have authors on articles, and once they've been paid, they cannot be removed from the article in question. How do I prevent a full repeater item from being deleted or edited once that condition occurs?
1 Reply
Patrick Boivin
Patrick Boivin17mo ago
I'm not sure how to prevent editing of specific items but I think you can prevent deleting by customizing the delete action: https://github.com/filamentphp/filament/blob/3.x/packages/forms/src/Components/Repeater.php#L204-L209
Want results from more Discord servers?
Add your server