# Create custom product collections

**URL:** <https://community.glideapps.com/t/create-custom-product-collections/42455>\
**Category:** Ask for Help\
**Created:** [May 27, 2022, 8:00pm UTC](https://community.glideapps.com/t/create-custom-product-collections/42455 "2022-05-27T20:00:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Cura](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_cura/32/37628_2.png) [@David\_Cura](https://community.glideapps.com/u/David_Cura)\
**Post date:** [May 27, 2022, 8:00pm UTC](https://community.glideapps.com/t/create-custom-product-collections/42455/1 "2022-05-27T20:00:51Z")

</div>

Hello community! I hope you are well.

I am creating a directory of products and I want to allow users to create collections so that I can save products in each of them.

It would look something like this:

User creates:  
Collection 1  
Collection 2

User adds product 1 and 2 in collection 1 and then can view it in their collection lists

I tried to do it but I was creating duplicate products for each time the user wants to add something to the collection.

I would like to know if the user can create his list of collections and then add products in there without repeating information. I was thinking of a user-specific type column called collection in the products table and that in some way the user can insert the name of the collection, but I’m very stuck.

Any ideas?

EDIT: To clarify: The user adds to his collections products that have already been created by other users and are already published.

Thank you!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [May 27, 2022, 11:42pm UTC](https://community.glideapps.com/t/create-custom-product-collections/42455/2 "2022-05-27T23:42:10Z")

</div>

> [@David\_Cura](#):
>
> I tried to do it but I was creating duplicate products for each time the user wants to add something to the collection.

Do you use a form? If you try to use an “Add row” action on-submit then it will create duplicate records, because the form by itself already adds the row.

My idea of the structure should be something like this:

**Collections table** : RowID, Collection Name, Added By ID (User’s rowID)

**Products table** : Collection ID (Collection’s rowID), Product Name, Added by ID.

Then when the user has created a collection, you can show a form inside the collections view to let users add products to that specific collection. Use a special value component to add the collection ID to the new Product’s row.

> **[Glide Docs](https://www.glideapps.com/docs)**
>
> Welcome to Glide Docs, a steadily growing collection of articles and videos on how to use Glide. We can’t wait to see what you build!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [July 1, 2022, 6:20pm UTC](https://community.glideapps.com/t/create-custom-product-collections/42455/3 "2022-07-01T18:20:27Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
