cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Hide field if user doesnt match

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?

1 ACCEPTED SOLUTION

Accepted Solutions
EricLott
Resident Rockstar
Resident Rockstar

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

View solution in original post

3 REPLIES 3
EricLott
Resident Rockstar
Resident Rockstar

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

View solution in original post

Anonymous
Not applicable

Thank you so much!

You're welcome

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,327)