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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Getting the value of a...
Power Apps
Unanswered

Getting the value of a checkbox inside nested gallery

(0) ShareShare
ReportReport
Posted on by 375

Hi all,

 

Is it possible to get the number of checkboxes ticked inside a nested gallery?

I have a gallery with headers as items, then a nested gallery that shows under each header. I will attach a screenshot below.

I would like to make it so that when you select a few items with the checkboxes, a button to delete them will be labeled something like 'Delete 5 items'.

I have tried a few different formulas but can't seem to get one that works.

 

The formula below just returns blank as the result for the condition, but the source does have data.

CountIf(galProcessHeaders.Selected.galProcesses.AllItems, chkProcessSelection.Value)

 

 

Thanks

 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    Hi @BradonK ,

     

    Add a Button control into the Parent Gallery. In the Text property of that Button, use an expression like below:

     

     

    "Delete "&CountRows(Filter('Your Child Gallery'.AllItems, Checkbox1.Value)) & " items"

     

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

     

  • BradonK Profile Picture
    375 on at

    @Amik 

     

    Unfortunately that still returns 0 and says that the check box is blank.

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @BradonK - I assume you have actually tried checking one of the checkboxes?

     

    Could you please share a screen shot, which ideally displays:

     

    1. What you have in the expression for the Text property of that Button
    2. The controls for the Parent and Child Gallery in the Tree view
  • BradonK Profile Picture
    375 on at

    @Amik ,

     

    "Delete " & CountRows(Filter(galProcesses.AllItems, chkProcessSelection.Value)) & " items"

     

    BradonK_0-1688428192165.png

     

    BradonK_1-1688428292292.png

     

     

  • Verified answer
    Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    Thanks @BradonK . For a reason I still cannot comprehend, you cannot access the output of controls inside a container.

     

    You would need take both the Button control and the Checkbox control out of those containers in order to achieve what you're trying to do.

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

  • BradonK Profile Picture
    375 on at

    @Amik ,

     

    Okay well that is annoying.

     

    Thanks for the help.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard