cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

How to change the toggle value before it is displayed?

Hi,

 

So I have 2 screens, each with a toggle control.

 

Screen A, Toggle A (default ON)

Screen B, Toggle B (default OFF)

 

When I turn Toggle A OFF in Screen A it navigates to Screen B...all good there.

 

Now, in Screen B when Toggle B is turned ON.. it navigates back to Screen A, but Toggle A value is OFF (because of previous step). How can I make it so that when Screen A shows back to the user the Toggle A is ON?

 

I have tried:

  1. Changing the value in OnVisible
  2. Passing a parameter back to screen A and setting it in the Default

 

Thanks!

1 REPLY 1
Super User III
Super User III

Hi @ChamCR ,

You we’re close with #2.

A Global Variable would do the job, but you need to watch possible Circular References if you try to set it off the control itself and make the value the Default.

If you make the Default the Variable, Set it on the return from the other screen and reset the control, it should show the value.

 

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.

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (13,087)