Hello
I am trying to add a checkbox with a select all and Unselect all function and this will save the items that i have choosen in a Gallery to a collection. for now I have succeeded if i choose the checkbox for the specific item in the gallery then it will collect the item to a collection for later purposes and if i uncheck, it will delete the item from the collection.
When i select "Unselect all", my collection will be cleared out and reset. I have a hard time for the "Select all" to collect the items from my filter to the same collection. Is there any way to "Select all" and collect the filtered items to a collection?
Thank you in advance if someone could help me with this.


