cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
axellefevre
Level: Powered On

Limit the number of ckeckbox checked ?

Hi,

 

I have some chechbox in a customize gallery. I want to limit the number of possible checkbox checked to 5.

 

How it is possible ? 

 

Thank you very much.

1 ACCEPTED SOLUTION

Accepted Solutions
Meneghino
Level 10

Re: Limit the number of ckeckbox checked ?

Hi @axellefevre

 

Here is one way to do it:

 

  1. Outside the gallery, on any part of the screen (you can even make it invisible), create a text box (TextBox1) with the following Text property:
    CountRows(Filter(Gallery1.AllItems, Checkbox1.Value))
  2. Set the Disabled property of the checkbox to this:
    Value(TextBox1.Text)>=5 && !Checkbox1.Value

Voila, please let me know if it works

View solution in original post

2 REPLIES 2
Meneghino
Level 10

Re: Limit the number of ckeckbox checked ?

Hi @axellefevre

 

Here is one way to do it:

 

  1. Outside the gallery, on any part of the screen (you can even make it invisible), create a text box (TextBox1) with the following Text property:
    CountRows(Filter(Gallery1.AllItems, Checkbox1.Value))
  2. Set the Disabled property of the checkbox to this:
    Value(TextBox1.Text)>=5 && !Checkbox1.Value

Voila, please let me know if it works

View solution in original post

axellefevre
Level: Powered On

Re: Limit the number of ckeckbox checked ?

It's works ! Thank you very much !

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,072)