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 / Hide field if user doe...
Power Apps
Answered

Hide field if user doesnt match

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I am new to PowerApps and I cant figure out certain formulas to what I need, so I apologize if anything I post sounds ridiculous. 

 

I am currently creating an app from a SharePoint List. The list has a column option of "Person or Group" meaning people wont have to type the names or emails manually since they are all part of the same Office365 group. 

 

I have a field that requires a signature, meaning whoever is selected on that "Person or Group" column should be the only one allowed to write on that field. I am currently using this formula on the visible choice:

 

If(User().Email = DataCardValue5.Selected.Email, Mail), true, false)

 

But this is all wrong since I get everything underline in red, any ideas with this please?

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The If() statement is unnecessary since you're returning true for a true case and false for a false case. This formula should work

    User().Email = DataCardValue5.Selected.Email
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you so much!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    You're welcome

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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard