Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Hide Gallery Button

(0) ShareShare
ReportReport
Posted on by 745

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 at
    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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics