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

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.

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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,463)