cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Englishweb
Post Patron
Post Patron

toggle visible OnSubmit

Hello

Can anyone tell me how to add a conditional visibility to a toggle control in a gallery, via a button: OnSelect (so that the toggle control is visible only after save)?

Thanks in advance

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hello @Englishweb ,

Just add a Variable to the button (I will call it vSaved)

On the OnSelect of the Save Button

UpdateContext({vSaved:true})

On the Visible property of the toggle

vSaved

Also ensure this is reset on screen exit 

UpdateContext({vSaved:false})

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hello @Englishweb ,

Just add a Variable to the button (I will call it vSaved)

On the OnSelect of the Save Button

UpdateContext({vSaved:true})

On the Visible property of the toggle

vSaved

Also ensure this is reset on screen exit 

UpdateContext({vSaved:false})

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Thanks....so easy when you know how!!

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,425)