cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChamCR
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
WarrenBelz
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (37,105)