cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stefanyobando 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
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
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

stefanyobando 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?

Highlighted
stefanyobando 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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (6,141)