cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

Visibility dependent on an item/button having being clicked

Hello,

 

I am trying to do something really simple and struggling.

 

I need a simple tick icon to appear if a button has been clicked.

 

(the button navigates the user to a different page. The user will then come back to the original page) This is when I want the tick to appear. I thought I would be able to do this based on a button being pressed but am stuck...

 

Thanks in advance,

 

Laura

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver II
Resolver II

Re: Visibility dependent on an item/button having being clicked

You need to set the Visible property of the icon to the name of the context variable you specified on the onselect property of your button.

 

You may be seeing the squiglly red line under the "tickvisible" in your icons visibility property if you have not created the context varible on the button before hand.

 

More reading on updatecontext here : https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-updatecontext

 

The button:

button.png

 

 

 

 

 

 

 

The icon:


tick.png

 







View solution in original post

4 REPLIES 4
Highlighted
Resolver II
Resolver II

Re: Visibility dependent on an item/button having being clicked

On the button 'OnSelect' Property: UpdateContext({TickVisible:true}) ; Navigate(yourscreen,none)

 

On the tick Image/icon 'Visible' Property: TickVisible

Highlighted
Advocate II
Advocate II

Re: Visibility dependent on an item/button having being clicked

Hi Sam,

 

thank you for your help.

 

My visiblity doesn't seem to like TickVisible  😞 

 

Do I Name the icon "TickVisible" and am getting confused? If so, what do i set the visibilty of the icon too?

 

Many thanks again Sam!

 

 

Highlighted
Resolver II
Resolver II

Re: Visibility dependent on an item/button having being clicked

You need to set the Visible property of the icon to the name of the context variable you specified on the onselect property of your button.

 

You may be seeing the squiglly red line under the "tickvisible" in your icons visibility property if you have not created the context varible on the button before hand.

 

More reading on updatecontext here : https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-updatecontext

 

The button:

button.png

 

 

 

 

 

 

 

The icon:


tick.png

 







View solution in original post

Highlighted
Advocate II
Advocate II

Re: Visibility dependent on an item/button having being clicked

Hi Sam,

 

this is PERFECT thank you!

 

It wasn't working still and then I realised you had put the navigate part of the formula after. So once I swapped it round it worked fine. 

 

Thank you so so much again 🙂 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,983)