web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to get nested gall...
Power Apps
Answered

How to get nested gallery checkbox count

(0) ShareShare
ReportReport
Posted on by 17

I have Done first gallery as group by and added one column for first gallery and rest of the columns added in the second gallery. In the second gallery I have Added checkbox with item.id value. When I am checking second gallery check box I want to get the count but when I am trying countrows(editgallery.allitems,editformcheckbox.value) I did not get value. Can any one help me to get out of this issue. 

IMG_20210526_202332.jpg
Categories:
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @chinuramesh87 A much simpler approach would be use a global variable set in the OnVisible of your screen,

    Set(countCheckBoxes, 0)

    In the OnCheck of the checkbox,

    Set(countCheckBoxes, countCheckBoxes+1)

    In the OnUncheck of the checkbox,

    Set(countCheckBoxes, countCheckBoxes-1)

    the countCheckBoxes variable will always have the correct count!

     

    Hope this helps!

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard