cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ikgray
Frequent Visitor

Activate a button with a checkbox.

I would like to have a checkbox that when checked will make a button labled "Continue" will become active. But it will only be active when I click in the checkbox.

1 ACCEPTED SOLUTION

Accepted Solutions
v-micsh-msft
Community Support
Community Support

Hi,

 

You should be able to make it by configuring the Button DisplayMode with the formula below:

If(Checkbox1.Value=true,Edit,Disabled)

Reference:

53.PNG

 

 

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
Shanescows
Super User
Super User

You want to set the visible property of the button to be true if the checkbox is checked. Look at this video on PowerApps conditional formatting, it should help you with the concept. 

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training
v-micsh-msft
Community Support
Community Support

Hi,

 

You should be able to make it by configuring the Button DisplayMode with the formula below:

If(Checkbox1.Value=true,Edit,Disabled)

Reference:

53.PNG

 

 

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Michael, you are awesome this works!

I have a similar situation as above, however the provided solution has not worked. I have a single checkbox (Checkbox1) duplicated for each of 76 listings.

I have been able to disable the Request Selected button (Button2) if (Checkbox1) is not selected (see image1).

If I select one or more listings, (Button2) is enabled and which is great (see image2).

The issue is that, when I dis-select one of the checkbox listings from image2, (Button2) goes back to disabled, even though other checkboxes are still selected which shouldn't happen.

Below is the DisplayMode formula I have for (Button2):

 

DisplayMode: If(And(Checkbox1.Value<>false), edit, disabled)

How would you do this when 10 checkboxes need to be checked?

How would you do this if you only want 10 boxes selected and you have a large number of checkboxes?

How do you do this when you need to select 10 checkboxes for the button to become active?

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,641)