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 / Hide Gallery Button
Power Apps
Answered

Hide Gallery Button

(0) ShareShare
ReportReport
Posted on by 789

Hi Everyone, I am trying to hide a gallery button (Profile) based on if their mail appears in the Azure Group.

 

I am using the formula below to hide the button

 

 

If(Office365Users.MyProfileV2().mail in Office365Groups.ListGroupMembers("Group ID").value.mail,true,false)

 

 

 

I got the horizontal gallery button with following formula in the gallery's Items

 

 

Table({ID:1,Label:"Profile",Value:"Profile"},{ID:2,Label:"Judging",Value:"Judging"}, {ID:3,Label:"Admin", Value:"Admin"})

 

 

 

I forgot to this as well.

Is it possible to have a each button in the gallery to have a different OnSelect formula?

 

I am trying to get this Profile OnSelect to do the following formula

Set(varTabSelected, 4);

And the Judging button OnSelect to do the following formula

Set(varTabSelected, 7);

 And the Admin button OnSelect to do the following formula

Set(varTabSelected, 1);

 

I hope you can help me.

 

@v-jefferni @WarrenBelz   @ANB   @mmbr1606   @timl

  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @Caleb62881177,

    I'm not sure I understand correctly, but if I can interpret, you might be overcomplicated it a little. You can easily set the state (color) of the label/button based on an if statement. The logic should check if a control is visible on that screen/container/section. So for example, set the Color property of the Profile button/label to:

    If(ProfileSectionContainter.Visible, Color.Blue, Color.Black)

    Hope this helps...

     

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
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard