Prevent user from selecting duplicate values in custom picker

I have a custom picker field that returns a list of users, 

 I want to be able to prevent the user from selecting the same user more than once. 

 

 Scenario: 

Users: "John", "James","Sally" 

 

User comes in and selects "John" as a user on the picker field, then presses "j" the only user that should display is "James". How can I achieve this? 

  Discussion posts and replies are publicly visible

Parents
  • Hello Jawara,

    Option 1)
    Let's think your picker saveInto:local!arrray
    Try union (local!arrray, local!arrray)
    This will make your users able to select the same but you will save it just once.

    Option 2)
    In the custom picker in the suggestFunction send the current list, and when you query the DB or service or even in memory filter out those already selected values

    Jose
Reply
  • Hello Jawara,

    Option 1)
    Let's think your picker saveInto:local!arrray
    Try union (local!arrray, local!arrray)
    This will make your users able to select the same but you will save it just once.

    Option 2)
    In the custom picker in the suggestFunction send the current list, and when you query the DB or service or even in memory filter out those already selected values

    Jose
Children
No Data