cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

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
Highlighted
Super User
Super User

Re: Hide field if user doesnt match

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
Highlighted
Super User
Super User

Re: Hide field if user doesnt match

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

Highlighted
Advocate I
Advocate I

Re: Hide field if user doesnt match

Thank you so much!

Highlighted
Super User
Super User

Re: Hide field if user doesnt match

You're welcome

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (10,533)