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 / Match email in table t...
Power Apps
Answered

Match email in table to set displaymode

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

After much searching on here and on you tube, I thought I'd best ask a question as I wasn't able to find the solution.

 

I'd like to change the DisplayMode on a button from Disabled, to View, but only if the User().Email is contained within a table of users; essentially what I'm trying to do is lock down some 'approval' buttons so that they only appear if the current user is held in a table.

 

So I've tried setting the DisplayMode formula to be if(LookUp(User_table, Email = User().Email) <> "", Displaymode.View, DisplayMode.edit)

However, this doesn't appear to work, so I was hoping one of you smart folk would be able to steer me in the right direction.

 

Thanks in advance,

Dan

Categories:
  • Verified answer
    timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi Dan,

    I would try the following formula to see if that works better.

    If(LookUp(User_table, Email = User().Email).Email <> "", 
     DisplayMode.View, 
     DisplayMode.Edit
    )

    If not, I would add a label and set the text property to this:

    LookUp(User_table, Email = User().Email).Email

    You can then use the result to debug/diagnose the result of the condition.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Fantastic! That worked. Thank you for your help. The tip on a using label to check the output is great too!

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 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard