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

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

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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