web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How limit Dropdown cho...
Power Apps
Unanswered

How limit Dropdown choices People picker field option until SearchText is blank

(0) ShareShare
ReportReport
Posted on by 13

Hi, 

I've a Dropdown choices People picker field in a Form connected to sharepoint list Person type column.

I want to restrict the dropdown options (as it bringing up all the cache names in the drop-down list).

Once the user starts typing name in the DropDown type field, the search can begin and start showing the search results in the dropdown list.

 

Here are few info:

NewForm:

vinay14sep_2-1705664679249.png

 

Newform (after clicking Combobox):

vinay14sep_3-1705664707490.png

 

 

 

 

DataCard info

vinay14sep_0-1705664624467.png

Data Feild :

vinay14sep_1-1705664656967.png

 

 

 

 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @vinay14sep - One option is to add a Text Input Control into your app, and then filter the Combo Box control or Dropdown control results based on whatever is entered in the Text input control.

     

    For example add the Office 365 Users connector into your app, and then add the following into the Items property of the Combo Box/Dropdown:

     

    Office365Users.SearchUser({searchTerm: TextInput1.Text})

     

    And add the following into the DisplayMode property of the Combo Box / Dropdown. This will prevent users from selecting the seeing cached records.

     

    If(
     Len(TextInput1.Text) = 0,
     DisplayMode.Disabled,
     DisplayMode.Edit
    )
    
  • vinay14sep Profile Picture
    13 on at

    @Amik , thanks for response.

     

    I did try it out. 

    The user experince is bit differnt when using an additional Text Input. + we still have to click Drop down box to look at the search results and select. (+hiding away this additional text box after use) 

     

    However, I could find an alternate solution :

     

    Items property of Combo Box (DataCardValue23_3):

    Filter(
     Office365Users.SearchUserV2(
     {
     searchTerm: Trim(Self.SearchText),
     isSearchTermRequired: true
     }
     ).value,
     AccountEnabled = true
    )

    Critical is to set "isSearchTermRequired" as true.

     

    and the Update property of DataCard to be :

    {
    Claims: "i:0#.f|membership|" & Lower(DataCardValue23_3.Selected.Mail),
    DisplayName: DataCardValue23_3.Selected.DisplayName,
    Email: DataCardValue23_3.Selected.Mail,
    Department: DataCardValue23_3.Selected.Department,
    JobTitle: DataCardValue23_3.Selected.JobTitle,
    Picture: ""
    }

     

    It worked for now, dont know how efficient this is.

     

    please let me know your thoughts. 

     

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @vinay14sep looks fine to me. Glad you found a solution.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard