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 / CheckAll/Reset CheckBo...
Power Apps
Answered

CheckAll/Reset CheckBox inside component

(0) ShareShare
ReportReport
Posted on by 237

Hi All,

 

I'm trying to build a component that has a gallery with a checkbox control. Outside of the gallery, I have another checkbox control named AllChkbox and the default value is "true". I set Default property of the checkboxes in the gallery to be AllChkbox.Value. It's all good on visible event of the screen like below:

Bochie_0-1636098641272.png

When I untick any one of the checkboxes inside the gallery, I'd like the AllChkbox control outside the gallery to become unchecked. However, if I check the AllChkbox control, I would also like to check all the checkboxes inside the gallery. I've been running circles with this logic and can't find the solution. I found one solution here, but this is not inside a component. Is it possible to create this logic inside a component? Help! 😔

 

-bochie

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Bochie ,

     

    I did a test for you.

    vxiaochenmsft_0-1636340214840.png

     

    CheckBox1:

    Default: B

    OnCheck: Set(A,true);Reset(Checkbox1_1);Reset(Checkbox1_2);Reset(Checkbox1_3)

    OnUncheck: Set(A,false);Reset(Checkbox1_1);Reset(Checkbox1_2);Reset(Checkbox1_3)

     

    Checkbox1_1:

    Default: A

    OnUncheck: Set(B,false);Reset(Checkbox1)

     

    Checkbox1_2:

    Default: A

    OnUncheck: Set(B,false);Reset(Checkbox1)

     

    Checkbox1_3:

    Default: A

    OnUncheck: Set(B,false);Reset(Checkbox1)

     

    AAA.gif

     

    Best Regards,

    Wearsky

  • Verified answer
    Bochie Profile Picture
    237 on at

    Thank you for your reply @v-xiaochen-msft ! I solved it last week by adding a boolean column "Show" to the collection and applying the same principle you outlined above. I had to add the columns because the number of checkboxes are dynamic and they are inside a gallery. In your sample above, the sub-checkboxes are not inside a gallery.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard