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')...
Jump to solution
6 Replies
dzoniia
dzoniia2mo ago
Solution
LeandroFerreira
LeandroFerreira2mo ago
maybe this? ->selectablePlaceholder(fn (string $operation) => $operation === 'create')
dzoniia
dzoniia2mo ago
After this line, I still can remove selected options on edit...
dzoniia
dzoniia2mo ago
No description
LeandroFerreira
LeandroFerreira2mo ago
sorry, $operation === 'create' actually
dzoniia
dzoniia2mo ago
Thanks It works
Want results from more Discord servers?
Add your server