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

Checkboxes in Nested Gallery to Collection and String output

Hi everybody,


I have a question regarding collections and making records from there available.

This is the overall use case:
I have a nested gallery being put together by two galleries:

1. Parent: Gallery_Category

2. Child: Gallery_Subcategory)

that result in an accordion-functionality, based on a Video by @mrdang:

Accordion Tutorial 


Inside the Parent-gallery(Gallery_Category) I have a single check box and inside the Child-gallery (Gallery_Subcategory) I have several checkboxes. Want I want to do and fail to achieve is the following:

OnCheck of the GalIery_Category I want to store the selected category and then I want to add to that collection item the accordingly selected subcategories from the Gallery_subcategory. 
OnUnCheck of the Gallery_Subcategory I would like to remove the unchecked Checkbox from the collection accordingly.


My overall goal is to use this "group" to build a dynamically generated string structured as follows:
CategorySelectedValue, SubcategorySelectedValue1, SubcategorySelectedValue2, SubcategorySelectedValue3... 


For the individual galleries I succeed with the following functions:



Concat(Coll_GalleryCategory,BU,", ")

This is how the PowerApps interface looks like:




I think maybe ForAll and GroupBy needs to come into play but I really don't know where to start.
Any help is much appreciated.

Thank you and best regards


Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,209)