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

Update toggle value to true when another toggle value is true

I have a nested if-statement for the Default value for a toggle that is checking the value of a couple of local variables as well as the value of another toggle. I cannot seem to get the toggle to update to true when the other toggle is updated to "true"

 

I am setting the Default value in the target toggle (NotifyAppCustodian) to:

If(isReset,false, isResetNameChange, false, SoftwareAppChanges_Value.Value=true, true, Parent.Default)

 

However, when I change the SoftwareAppChanges toggle to true, the NotifyAppCustodian toggle does not update to true...the rest of the formula works. I am getting a notification on that highlighted part of the formula that says: contorl.png

1 ACCEPTED SOLUTION

Accepted Solutions
janla2112
Frequent Visitor

I solved the issue fairly simply.

I added the following to the OnCheck property of the source toggle, "Software App changes":pic1.png

 

And then added the following into the if-statement of the Default property of the destination toggle, "NotifyAppCustodian":

 

pic2.png

View solution in original post

1 REPLY 1
janla2112
Frequent Visitor

I solved the issue fairly simply.

I added the following to the OnCheck property of the source toggle, "Software App changes":pic1.png

 

And then added the following into the if-statement of the Default property of the destination toggle, "NotifyAppCustodian":

 

pic2.png

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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