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 / Setting display mode o...
Power Apps
Answered

Setting display mode of button based on sharepoint list.

(0) ShareShare
ReportReport
Posted on by 24

Hi everyone,

I am trying to set the display mode of a button based on the current users name in the SharePoint list and his status as allowed. Please find attached screen shot of my app and SharePoint list.

For example current user is funfunny, so display mode should be activated to edit only if funfunny is in SharePoint list (App Permissions) , and allowed to access.

what i have tried to use 

IF( User().Fullname in Filter( 'App Permissions', StartsWith( Allowed, " Yes")), DisplayMode.Edit, DisplayMode.Disable)

it doesn't work, any other solution for this task.

 

Thanks 

Shoaib

Navegate got stuck.png
List.JPG
Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,649 Most Valuable Professional on at

    First, it would be more efficient if you set a Global Variable for the CurrentUserName in App OnStart.  Like this

    Set(CurrentUserName, User().Fullname)

    Then assuming you don't need to allow for the user not being in the App Permissions list at all you could use the following in the DisplayMode property of the button.

     If(LookUp('App Permissions', CurrentUser = Name).Allowed,DisplayMode.Edit,DisplayMode.Disabled)

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

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard