I am using a User Picker Field in an interface and filtering the users by group. However the field allows me to select the same user multiple times.
Is there a way to remove a user from the dropdown field if they have already been selected?
I have found a way to prevent selecting a user multiple times, but it would be better if the user just didn't appear in the dropdown because they have already been selected.
Discussion posts and replies are publicly visible
There may be a more ideal way to accomplish this, but in the past I've used the union() function to accomplish this:
union(local!selectedUsers,local!selectedUsers)