Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

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 III
Dual Super User III

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

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,756)