Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

help with checkbox in gallery

Hi Guys,


I have a gallery with checkbox and the items in gallery are dynamic and each item has a checkbox. I want to perform a simple validation to see if every check box in gallery item is checked or not. if all checkbox are checked only then perform a action.


i have tried uing below code but it dose not work


If(CountIf(Gallery_checklist_2.AllItems,Checkbox1.Value=true) >0,
Case_ID: case_id_checklist,
Internal_Status: "Close"
Navigate('My Cases',ScreenTransition.Fade);

Dual Super User
Dual Super User

Re: help with checkbox in gallery

Try this for your If() instead

If(CountRows(Gallery_checklist_2.AllItems)=CountIf(Gallery_checklist_2.AllItems, Checkbox1.Value),...

That will check to see if the number of checkboxes checked equals the number of rows in the gallery.

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.


Power Apps Community User Group Member Badge

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


Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.


Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,407)