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: