Showing results for 
Search instead for 
Did you mean: 
Advocate I
Advocate I

Checkboxes check/uncheck other checkboxes



I have created an app where the user steps through several canvases and selects from a set of checkboxes. On this particular canvas, if someone selects CBSSC Staff, I need the app to automatically select CBS GAL as well. Unchecking CBSSC Staff would also uncheck CBS GAL. It should not work in the other direction, however...if someone selects CBS GAL, that checkbox would be the only one that is supposed to be checked.


Basically, all CBSSC Staff includes CBS GAL, but not all CBS GAL includes CBSSC Staff.


Is there a way to make a checkbox simultaneously check another box? I've tried various "OnCheck" things but nothing is actually making CBS GAL check when I check CBSSC Staff.







For the scenario that you have a Checkbox outside of a Gallery lets call it "Select All", and you want to use it to select all items from the Gallery that has a Checkbox placed in called "Checkbox1" ( *and add them to a colection called "SelectItems") :


For the Gallery in my case i have only 2 items Name and File:

-Name.Text=Label for Name in Gallery

-DisplayFileName.Text= Label for File in Gallery

Set up as it follows:

1.SelectAll Checkbox outside Gallery:

OnCheck:   ForAll(Gallery.AllItems, Collect(SelectItems, {Name: Name.Text, File: DisplayFileName.Text}))
OnUncheck: Clear(SelectItems)


2.Checkbox1 placed in Gallery:

OnCheck:  Collect(SelectItems, {Name: Label2.Text, File: DisplayFileName.Text})
OnUncheck: Clear(SelectItems)
Default: SelectAll.Value

To test that it collects all selected checkboxes, I created a Blank Vertical Gallery and set its Items property to : SelectItems, and add 2 labels for Name and File, and set up for each on the Text property: ThisItem.File for the File label, and ThisItem.Name for the Name label.

Hope it helps! 🙂

Hey mate, I have the same situation. Did you manage to fix this? if so what did you do? 

thanks in advance!

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,061)