Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Re: Checkboxes check/uncheck other checkboxes


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! 🙂

Regular Visitor

Re: Checkboxes check/uncheck other checkboxes

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

thanks in advance!

Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,835)