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 / Users are unable to pi...
Power Apps
Answered

Users are unable to pick themselves to be approver.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 I am building a Leave Request app right now and struggling with the statement. Is there any way to prevent users from picking themselves to be approver? I have tried different ways like if(_selectedapprover=User(); DisplayMode.Disabled; DisplayMode.Edit) Could I have some help?

 Ander 

Categories:
  • Verified answer
    AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    is selected approver a person field or something like that. 
    Perhaps doing something more like:

    if(_selectedapprover.Mail=User().Email; DisplayMode.Disabled; DisplayMode.Edit)

     

    that way you compare the emails 🙂

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It worked! Than you.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard