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