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 Apps
Unanswered

List Menu

(1) ShareShare
ReportReport
Posted on by 438

I have a concern about the list menu in PowerApps. It seems that PowerApps cannot create a role-based list menu, where each role like staff and student would display differently within the same menu. Creating two separate list menus would be too much work for me. Currently, I've labeled each name on the list to navigate to the respective screen.

Screen recording: https://drive.google.com/file/d/1EgLR-1LA-jbiEMx6ndV0aZk6EvhhTjvv/view?usp=sharing

 

Staff Role                            Student Role

Screenshot 2024-07-16 at 5.19.16 PM.pngScreenshot 2024-07-16 at 5.18.58 PM.png

Categories:
I have the same question (0)
  • SoPatt Profile Picture
    Microsoft Employee on at
    I don't fully understand your issue. However, assuming you have a variable called Role that holds the text "Student" or "Staff", you could show or hide controls using the Visible property, e.g. Role="Student", Role="Staff".
     
    Perhaps it would help to describe your issue in more detail.
  • dylandavis09 Profile Picture
    438 on at

    I just figured out and solved the issue where I had two different tab menus in two different variables. I am trying to get everything together in one tab menu. I would like to have everything in one place, with the tab menu based on the role: Students will see one list, and Staff will see another list.

    If(

    LookUp(
    'DHS All Users',
    'Full Name' = User().FullName
    ).Role.Value = "Student",
    UpdateContext({varStudentTabListMenu: !varStudentTabListMenu}),
    If(
    LookUp(
    'DHS All Users',
    'Full Name' = User().FullName
    ).Role.Value = "Staff",
    UpdateContext({varStaffTabListMenu: !varStaffTabListMenu})
    )
    )

     
  • Ryan_B Profile Picture
    446 on at
    SoPatt has the right of it to make it simple.
     
    Use the menu in your "StaffTabList" screen and define what to display based on the role. Judging by your video, it looks like you have the sections grouped in some fashion, in which case you will go to the "DHS Administration" group and set its visible property to:
     
    If(
        LookUp('DHS All Users''Full Name' = User().FullName).Role.Value = "Staff",
        true,
        false
    )
     
    This will only display that group of controls to users who are assigned the "Staff" role.
  • Sam_Fawzi Profile Picture
    902 Super User 2026 Season 1 on at
    Hey,
    I think we need to know where you're getting the menu list from. Is it from a SharePoint list or is it hard-coded? I had a similar requirement, and I created a SharePoint list for the menu with roles. Based on the logged-in user's role, I was able to show or hide items accordingly.
     
    Cheers,
    Sam
  • dylandavis09 Profile Picture
    438 on at
    Thank you Sam and Ryan for your sending this!!!! It's worked. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 462

#2
WarrenBelz Profile Picture

WarrenBelz 425 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard