FilamentF
Filament16mo ago
dzoniia

Select multiple on edit disable delete of selected items

Is it possible to disable deletion of selected items in multiple select on edit page.
Example: on create operation, user chooses two of three values. On edit operation, selected values should be disabled or unable to delete. The user can only add other value.
Solution
maybe this?
->selectablePlaceholder(fn (string $operation) => $operation === 'create')
Was this page helpful?