web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DisplayMode based on user
Power Apps
Unanswered

DisplayMode based on user

(0) ShareShare
ReportReport
Posted on by 157

Hi,

 

I'm still can't find a way to work with DisplayMode for a Data Card Item OR Icon, I'm looking to change a DisplayMode based on a current user email or if the user's member of a group can edit the item I try this method but still not working!

 

I made Global variable

OnStart : Set(CurrentUser, User())

and set the DisplayMode for the item

If(CurrentUser.Email ="xyz@mydomain.com" Or CurrentUser.Email ="abc@mydomain.com", DisplayMode.Edit, DisplayMode.view)

 

Categories:
I have the same question (0)
  • dinusc Profile Picture
    Microsoft Employee on at

    Your formula looks correct. 

    Please note however that if you have a card that is set to DisplayMode.View then an item from that card will never be interactive even if its DisplayMode is set to DisplayMode.Edit. Make sure that the parent card is set to DisplayMode.Edit and then adjust the DisplayMode for all the child items with your formula.

  • Verified answer
    Sharif Alhennawy Profile Picture
    157 on at

    I didn't imagine I have to write the variables as the same source with case sensitive !

     

    if user email AbC@myDomain.cOm not equal abc@mydomain.com 

     

    it's working now 

     

    Thanks!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard