cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
stefanyobando
Level: Powered On

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
mdevaney
Level 8

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
mdevaney
Level 8

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
Level: Powered On

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?

stefanyobando
Level: Powered On

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

Is fixed with OR condition into Default Property !! 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 307 members 5,193 guests
Please welcome our newest community members: