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

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
SamPhillips
Level 8

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
SamPhillips
Level 8

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

LauraEmberson
Level: Powered On

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!

 

 

SamPhillips
Level 8

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

LauraEmberson
Level: Powered On

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,935)