I want to replace a dropdown with a user search box

 Hi All,

my requirement is to replace the existing drop down field with a search field.

The drop down will fetch the usernames from a rule. So due to increasing of user's in the rule we want replace with a searchbox rather than a Dropdown field.

Existing drop down field and code

Code:

a!dropdownField(
label: "Select Re-assignee",
placeholderLabel: "All",
choiceLabels: local!reassignChoiceLabel,
choiceValues: local!reassignChoiceValue,
value: local!selectedAssignee,
saveInto: local!selectedAssignee,
labelPosition: "ADJACENT",

)

Note: I'm saving all the required users list into a local variable local!userList.

I'm trying to fetch the list using a Find User picker but I'm getting all the application user's, but i need only the users from the local variable local!userList.

a!pickerFieldUsers(
label: "Select Re-assignee",
labelPosition: "ADJACENT",
maxselections: 1,
value: local!userList,
saveInto: {
local!selectedAssignee,
}
),

Please help me in this

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hi, You can make use of "Group Filter" Parameter. For that you can add the required users list in a particular group and the constant related to that group you can pass over here. Attached is the sample code.

    a!pickerFieldUsers(
      label: "Select Re-assignee",
      labelPosition: "ADJACENT",
      maxselections: 1,
      groupFilter: cons!ABC_GRP_USERS,
      value: local!selectedAssignee,
      saveInto:local!selectedAssignee,
    )

Reply
  • 0
    Certified Senior Developer

    Hi, You can make use of "Group Filter" Parameter. For that you can add the required users list in a particular group and the constant related to that group you can pass over here. Attached is the sample code.

    a!pickerFieldUsers(
      label: "Select Re-assignee",
      labelPosition: "ADJACENT",
      maxselections: 1,
      groupFilter: cons!ABC_GRP_USERS,
      value: local!selectedAssignee,
      saveInto:local!selectedAssignee,
    )

Children