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:Jump to solution
maybe this?
->selectablePlaceholder(fn (string $operation) => $operation === 'create')
...6 Replies
Solution
maybe this?
->selectablePlaceholder(fn (string $operation) => $operation === 'create')
After this line, I still can remove selected options on edit...
sorry,
$operation === 'create'
actuallyThanks
It works