cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CollabTechie
Level 8

Disable button unless one of multiple check boxes is selected

Hi Community,

I need to disable a button unless one of my 8 check boxes are selected on a screen.  

I can handle this with the radio control by using the below, but how to achieve it with multiple check boxes?

 

If(IsBlank(Q4RadioSet.Selected.Value) ,DisplayMode.Disabled, DisplayMode.Edit)

 

 
Thanks,
M

1 ACCEPTED SOLUTION

Accepted Solutions
SkiDK
Level 8

Re: Disable button unless one of multiple check boxes is selected

You could use the Or() function.

 

If(Or(cb1.Value, cb2.Value, cb3.Value, ..., cb8.Value), DisplayMode.Edit, DisplayMode.Disabled)

 

In this case, when one or more of the check boxes is checked (cb.Value = true), the display mode will go in Edit, otherwise it will be disabled. (Note that I changed places of 'Edit' and 'Disabled'.)

 

I hope this helps.

View solution in original post

2 REPLIES 2
SkiDK
Level 8

Re: Disable button unless one of multiple check boxes is selected

You could use the Or() function.

 

If(Or(cb1.Value, cb2.Value, cb3.Value, ..., cb8.Value), DisplayMode.Edit, DisplayMode.Disabled)

 

In this case, when one or more of the check boxes is checked (cb.Value = true), the display mode will go in Edit, otherwise it will be disabled. (Note that I changed places of 'Edit' and 'Disabled'.)

 

I hope this helps.

View solution in original post

CollabTechie
Level 8

Re: Disable button unless one of multiple check boxes is selected

This worked perfectly. Thanks!

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,530)