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

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?

Highlighted
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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,163)