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 / Powerapp help on galle...
Power Apps
Answered

Powerapp help on gallery tab and display image details in form from attachment

(1) ShareShare
ReportReport
Posted on by 313

Hi all, 

thank you for taking your time to see this message.
i have 2 issue.
1st issue is i have this gallery tab button that contain basic info, HR, IT, Onboarding.
how can i hide HR tab so that non HR personal can not see this tab.
i have this HR sharepoint list that contain all the HR email address and wondering if i can use that HR sharepoint list.

WeiMingLeong_0-1639556270030.png

the item property for gallery button:

WeiMingLeong_1-1639556393067.png

Onselect button:

WeiMingLeong_2-1639556445824.png

 

this 2nd issue does not relate to first issue.

2nd is i have a detail form and have an attachment that staff need to add their photos.
how can i have the detail form to show image from the attachment?

Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @WeiMingLeong,

    Have you solved your first issue for that I have seen you asked a similar question in our forum?

     

    Let's figure it one by one.

    1). To hide the HR tab for those who do not exist in the HR SP list.

    You just need to check if the current user exists in your HR SP list. Not sure how you configure these tabs in your scenario, I just assume that a separate button represents a different data source.

    Set the Visible property of the HR tab as below:

    If(User().Email in HR_SPlist.EmailAddress.Email,false,true)

     

    2). To display the image from the Attachment control.

    Insert an Image control within the data card and set the Image property as below:

    First(ThisItem.Attachments).AbsoluteUri
  • Wei Ming Leong Profile Picture
    313 on at

    Hi @v-qiaqi-msft,

     

    yeaa kind of same title but due to different type of powerapp use.

    1 is employee details application while this is HR onboarding application.


    for the first question,
    it is not separate individual button. it is using gallery as a button. 

    WeiMingLeong_0-1639725456388.png

     

    for 2nd question. (resolve)! Thank you.

    ohh insert image to the data card.
    my brain keep thinking need to insert gallery as to separate it out from the detail form.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @WeiMingLeong,

    I have a test on my side that you could use a similar formula to achieve this first need.

    If you just want to make the HR button invisible once the current user does not exist in the HR SP list

    vqiaqimsft_0-1639727861289.png

    If(
     User().Email in First(Actions).Teacher.Email,// Here Actions is my HR SP list.
     Filter(
     Table(
     {Tab: "Info"},
     {Tab: "HR"},
     {Tab: "IT"},
     {Tab: "CheckList"}
     ),
     !(Tab = "HR")
     ),
     Table(
     {Tab: "Info"},
     {Tab: "HR"},
     {Tab: "IT"},
     {Tab: "CheckList"}
     )
    )

     

  • Wei Ming Leong Profile Picture
    313 on at

    Hi @v-qiaqi-msft ,

    i tried the formula, i dont have any error but it does not hide the HR button.
    i should not be seeing HR Button as my name is not in the list.
    the black border box are my colleagues from the admin department.

    WeiMingLeong_0-1639731608308.png

    the sharepoint list setting for the admin security list

    WeiMingLeong_0-1639972201043.png

    WeiMingLeong_1-1639972255984.png

     

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    Try this 🙂 :

     

    If(!IsBlank(LookUp('Admin Security control').'Admin Name'.Email = User().Email)),
     Filter(
     Table(
     {Tab: "Info"},
     {Tab: "HR"},
     {Tab: "IT"},
     {Tab: "CheckList"}
     ),
     !(Tab = "HR")
     ),
     Table(
     {Tab: "Info"},
     {Tab: "HR"},
     {Tab: "IT"},
     {Tab: "CheckList"}
     )
    )

    If this is your solution please click accept as solution also this goes in the items / datasource for the Gallery

  • Wei Ming Leong Profile Picture
    313 on at

    Hi @AJ_Z ,


    i am not able to complete due to error.

    WeiMingLeong_0-1639978949348.png

     

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    Could you hover over and say what the error says? also is it possible one of the columns or the SP List is names slightly different than what i put

  • Wei Ming Leong Profile Picture
    313 on at

    hi @AJ_Z ,

     

    sorry for the late reply.
    here is the hover error

    WeiMingLeong_0-1640049872499.png

     

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    yes there is a mistake in the first line. This is my mistake apologies.

    try this:

    If(!IsBlank(LookUp('Admin Security control','Admin Name'.Email = User().Email)),
     Filter(
     Table(
     {Tab: "Info"},
     {Tab: "HR"},
     {Tab: "IT"},
     {Tab: "CheckList"}
     ),
     !(Tab = "HR")
     ),
     Table(
     {Tab: "Info"},
     {Tab: "HR"},
     {Tab: "IT"},
     {Tab: "CheckList"}
     )
    )
  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    Let me know how it goes and if it is your solution 🙂

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard