I am working on a people picker using a combobox to search the office 365 users
Here is my items function
Office365Users.SearchUser({searchTerm:PeoplePicker.SearchText,top:9})
I would like for the drop down to begin population once the user types more than 2 characters. i.e., be blank when sm is typed and then begin to populate when smi is typed.
How can this be controlled?
Thx
Solved! Go to Solution.
Thank you @zmorek
That works. I also came up with this way
If(
Len(
PeoplePicker.SearchText)>2,
Office365Users.SearchUser({searchTerm:PeoplePicker.SearchText,top:9}
)
)
Edit for formatting because it didn't save correctly...
Update your Items property to:
If(
Len(Self.SearchText) < 3,
Blank(),
Office365Users.SearchUser(
{
searchTerm: PeoplePicker.SearchText,
top: 9
}
)
)
Thank you @zmorek
That works. I also came up with this way
If(
Len(
PeoplePicker.SearchText)>2,
Office365Users.SearchUser({searchTerm:PeoplePicker.SearchText,top:9}
)
)