cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Responsive Resident
Responsive Resident

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
Highlighted
Impactful Individual
Impactful Individual

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
Highlighted
Impactful Individual
Impactful Individual

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

Highlighted
Responsive Resident
Responsive Resident

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

This worked perfectly. Thanks!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published 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 (5,926)