Skip to main content
Community site session details

Community site session details

Session Id : m5ba8hzn8336ISRF57GHao
Power Apps - Microsoft Dataverse
Answered

Hide Gallery Button

Like (0) ShareShare
ReportReport
Posted on 9 Feb 2024 09:52:35 by 765

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

Categories:
  • Verified answer
    EricRegnier Profile Picture
    8,714 Most Valuable Professional on 09 Feb 2024 at 13:17:13
    Re: Hide Gallery Button

    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics

Loading complete