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 / Restrict users from ad...
Power Apps
Unanswered

Restrict users from adding same person in people picker field

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I have 2 people picker fields.

 

I am trying to restrict users from entering same person in the people picker field.

 

I tried to set this formula on the OnChange property of the second people picker field :

 

If(!IsBlank(Filter(DataCardValue13.SelectedItems,Email in DataCardValue10.SelectedItems.Email)),Notify("you've selected duplicated user",NotificationType.Warning))

 

But it always shows the warning message even when the users are different.

 

Capture.PNG

What am I missing here?

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

    Hi @Anonymous ,

     

    Try this:

    IsBlank is to check Value, IsEmpty is to check Table

     

    If(!IsEmpty(Filter(DataCardValue13.SelectedItems,Email in DataCardValue10.SelectedItems.Email)),Notify("you've selected duplicated user",NotificationType.Warning))

     

    Hope this helps.

    Sik

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