cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
polska2180
Level: Powered On

On Label Click hide Label_1 & Label_2 &

Really new to PA, 2 weeks in and am working with existing PA that I'm trying to rework to our new needs.

 

Anyways have a bunch of labels that are clicable basically right now they just show a card, so click on label 1 card_whatever shows up.  

 

What I need to add is if I click on a label lets say Label_1, Label_2 and Label_3 hide but label_5 and label_6 show up.

 

Thanks for the help.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: On Label Click hide Label_1 & Label_2 &

Hi @polska2180,

You would use the UpdateContext() function to do what you want. In the OnSelect property of Label_1

UpdateContext({hide23:false})

You would then set the Visible property of Label_2 and Label_3 to hide23 and set the Visible property of Label_5 and Label_6 to !hide23.  If you wanted to use Label_1 to toggle the visibility of the other labels you would put the OnSelect property of Label_1 as 

UpdateContext({hide23,!hide23})
2 REPLIES 2
Highlighted
Super User
Super User

Re: On Label Click hide Label_1 & Label_2 &

Hi @polska2180,

You would use the UpdateContext() function to do what you want. In the OnSelect property of Label_1

UpdateContext({hide23:false})

You would then set the Visible property of Label_2 and Label_3 to hide23 and set the Visible property of Label_5 and Label_6 to !hide23.  If you wanted to use Label_1 to toggle the visibility of the other labels you would put the OnSelect property of Label_1 as 

UpdateContext({hide23,!hide23})
polska2180
Level: Powered On

Re: On Label Click hide Label_1 & Label_2 &

ah...makes sense ty.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 18 members 4,242 guests
Please welcome our newest community members: