cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

change a value if another field is selected too.

I need that a YES / NO field to change if another is selected. How can I do it? Should I set any rules?

Example: 

If delivery services is true, 

Development  should be true Or yes too

 

Thanks for help !!!delive.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: change a value if another field is selected too.

@stefanyobando 

Put this code in the OnVisible property of your screen.

 

Set(resetToggle, false);

 

Next, use this code in the OnChange property of your delivery services toggle

 

Set(resetToggle, true);Set(resetToggle, false);

 

Finally, put this code in the Default property of your development toggle.

 

Toggle_DeliveryServices.Value

 

---
Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

Re: change a value if another field is selected too.

@stefanyobando 

Put this code in the OnVisible property of your screen.

 

Set(resetToggle, false);

 

Next, use this code in the OnChange property of your delivery services toggle

 

Set(resetToggle, true);Set(resetToggle, false);

 

Finally, put this code in the Default property of your development toggle.

 

Toggle_DeliveryServices.Value

 

---
Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

View solution in original post

Highlighted
Helper II
Helper II

Re: change a value if another field is selected too.

What do I do when there are more values? For example, I have more '' toogles '' so I need for example: Delivery services is ''yes'' when '' sales = yes '' and '' accounting = yes '' 

In the default value, I need them to be more than 1 value. Example:

 

Default:    '' toogle_sales.value AND toogle_accounting.value. ''

 

How can I make that work for me?

Helper II
Helper II

Re: change a value if another field is selected too.

Is fixed with OR condition into Default Property !! 

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,334)