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 / limit choices in perso...
Power Apps
Answered

limit choices in person field

(0) ShareShare
ReportReport
Posted on by 31

Hi,

Is there a way to limit choices in a powerapps person field using another list containing list of persons.

Thanks

Suji 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Sujimon ,

     

    I assume there is a list:

    vbofengmsft_2-1668048036832.png

    You could set the combo box's items property to:

    ForAll(
     ContainingList.PersonColumn,
     {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Department: PersonColumn.Department,
     Claims: PersonColumn.Claims,
     DisplayName: PersonColumn.DisplayName,
     Email: PersonColumn.Email,
     JobTitle: "",
     Picture: ""
     }
    )

    vbofengmsft_4-1668048076115.png

     

    Best Regards,

    Bof

     

  • Sujimon Profile Picture
    31 on at

    Hi @v-bofeng-msft ,

    The combo is getting populated but I am not able to use the search field. I get unexpected characters errors when I enable search field. Is there any way get search working? 

    Sujimon_0-1668575227535.png

     

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Sujimon ,

     

    Could you please show me more details?

    Best Regards,
    Bof

  • Sujimon Profile Picture
    31 on at

    Hi @v-bofeng-msft ,

    With above code in combobox's items property, the combobox is getting populated with persons given in the list and I am able to select person but I am not able to type into combobox's search field and search for person. Only selection is possible but I am looking for search as well. When I enable combobox's search filed, I am getting unexpected characters error.

    Rgds

    Suji

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Sujimon ,

     

    I've made a test but did not encountered the problem you mentioned. 

    vbofengmsft_0-1668578217179.png

     

    Best Regards,

    Bof

  • Sujimon Profile Picture
    31 on at

    Hi @v-bofeng-msft ,

    Not sure what I did but its working now. Thanks for the help.

    Rgds

    Suji

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard