cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

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})

View solution in original post

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})

View solution in original post

Highlighted
Resolver I
Resolver I

Re: On Label Click hide Label_1 & Label_2 &

ah...makes sense ty.

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,339)