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

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

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

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 (7,273)