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.
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...
mmbr1606
22
Super User 2025 Season 1
stampcoin
17
ankit_singhal
11
Super User 2025 Season 1