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