cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Control conditional visibility

Hello,

 

I have a Gallery control ‘Gallery1’ that I would like to toggle visibility on-and-off based on a user clicking an image ‘Image1’. In other words, ‘Gallery1’ would be invisible by default. However, if a user were to click ‘Image1’, ‘Gallery1’ would appear. On a second click, it would disappear. 

 

I’ve tried an ‘IF’ statement, but likely I am not formatting it properly. Could someone chime-in with advice?

 

Thanks much in advance

10 REPLIES 10

Hi

I am yet to test (I am writing from mobile) if the screen is clickable (I supposed NOT).

So my idea for you is if this is what you want you can a Button, With Transparent color, covering the whole screen ,put it just beneath the Button level. (Use Move Backward) or see left pane.
So that you can have OnnSelect = Updatecontext({vis_button : false}) .
vis_button is the property for your original button.visible


Hope this helps.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,510)