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 / Check/uncheck other ch...
Power Apps
Answered

Check/uncheck other checkboxes

(0) ShareShare
ReportReport
Posted on by

I have 5 checkboxes in Power Apps in which the data type of each column is in boolean (SharePoint):

  • All
  • EmpA
  • EmpB
  • EmpC
  • EmpD

What I would like to do is whenever I check the All, it would check the other checkboxes and when I uncheck, it will uncheck everything as well. Also, I'm currently using Patch function to update the value in SharePoint. Please help.

Categories:
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @biancadevera ,

     

    This can be achieved by setting the Default property of EmpA-D to All.Value. Like this, whenever you (un)check the All checkbox, the other 4 will take the new value of the All checkbox.

  • biancadevera Profile Picture
    on at

    Thanks, @BCBuizer . I have another question though. What if I only select specific checkboxes and patch the value to my SharePoint? How's the Default value would look like? Assuming I didn't check the All but the EmpA is checked. Wouldn't it show uncheck because of the All.Value in my Default?

  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @biancadevera ,

     

    That might indeed be the case, depending on the context of your app. However, I wasn't aware of the context, so perhaps you can share how these checkboxes are currently working?

  • biancadevera Profile Picture
    on at

    Hi @BCBuizer 

     

    See my codes below:

     

    OnCheck

    Patch(db,
    LookUp(db,lblEmployees.Text = ThisItem.Employee.Value),
    {All: true});

     

    OnUncheck

    Patch(db,
    LookUp(db,lblEmployees.Text = ThisItem.Employee.Value),
    {All: false});

     

    EmpA

    OnCheck

    Patch(db,
    LookUp(db,lblEmployees.Text = ThisItem.Employee.Value),
    {EmpA: true});

     

    OnUncheck

    Patch(db,
    LookUp(db,lblEmployees.Text = ThisItem.Employee.Value),
    {EmpA: false});

     

    All - Default

    ThisItem.All

     

    EmpA - Default

    ThisItem.EmpA

     

    Please note that the columns for All, EmpA-D are in Boolean type.

  • Verified answer
    BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @biancadevera ,

     

    In this case you may patch the colums in the datasource directly in the (un)check property of the All checkbox:

     

    OnCheck:

    Patch(db,
    LookUp(db,lblEmployees.Text = ThisItem.Employee.Value),
    {All: true,
    EmpA: true,
    EmpB: true,
    EmpC: true,
    EmpD: true
    });

     

    OnUnCheck:

    Patch(db,
    LookUp(db,lblEmployees.Text = ThisItem.Employee.Value),
    {All: false,
    EmpA: false,
    EmpB: false,
    EmpC: false,
    EmpD: false
    });

     

    There may not even be a need for the All column in your data source anymore.

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 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard