# Separate Comment

**URL:** <https://community.glideapps.com/t/separate-comment/69378>\
**Category:** Ask for Help\
**Created:** [January 8, 2024, 11:11pm UTC](https://community.glideapps.com/t/separate-comment/69378 "2024-01-08T23:11:07Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 8, 2024, 11:11pm UTC](https://community.glideapps.com/t/separate-comment/69378/1 "2024-01-08T23:11:08Z")

</div>

Good evening,  
I have an application where people can post reviews of games, a bit like letterboxd for those who know. All you have to do is enter your five-star review, with the option of bookmarking it, and so on. The only problem is that I want to add comments that people can leave under each game.

The problem is that when I add the comment function, it gets mixed up between all the games.

Let’s say I leave a comment under the game Minecraft. My comment will also be visible under GTA V, Red Dead Redemption, … (basically all games)

Is there a way to separate each comment for each game? Give people the chance to give their opinion only for THE game they want and not have everything mixed up?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/e/ee737397bfd0d50f9e0b885f5920e864a2b2118c.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/e/4efac1ddba19151a706148aadf337881106bd1ce.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/e/4ed552c243070e0e2e2669320d4030a49247aba9.png)

---

<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:** [January 8, 2024, 11:55pm UTC](https://community.glideapps.com/t/separate-comment/69378/2 "2024-01-08T23:55:39Z")

</div>

> [@Vikatchu](#):
>
> The problem is that when I add the comment function, it gets mixed up between all the games.
> 
> Let’s say I leave a comment under the game Minecraft. My comment will also be visible under GTA V, Red Dead Redemption, … (basically all games)

You have to add a rowID to the original games list, and then send that ID to the comments table when your users leave a comment.

Add a relation from the games table to the comments table through that ID and use that relation as your comments collection source.

---

<div class="post-metadata">

**Author:** ![slscustom.ru](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slscustom.ru/32/77336_2.png) [@slscustom.ru](https://community.glideapps.com/u/slscustom.ru)\
**Post date:** [January 8, 2024, 11:57pm UTC](https://community.glideapps.com/t/separate-comment/69378/3 "2024-01-08T23:57:51Z")

</div>

Did you have separate table for Commrnts?  
It would have:  
Game ID| User ID| Comment text| Stars  
And you need to add multi relation from game table(game ID) to Comment table Game ID. And add comment collection with source of this rel

---

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 9, 2024, 1:45pm UTC](https://community.glideapps.com/t/separate-comment/69378/4 "2024-01-09T13:45:50Z")

</div>

Hello @ThinhDinh and @slscustom.ru ,  
I’ve been trying since this morning but I can’t get it to work (I’m new at this, sorry).

What I understood:

1. Create a “Comments” table
2. Separate them: Game ID| User ID| Comment text|
3. Create a relationship between RowID (game table) and Game ID (Comment table).
4. Create a relationship between RowID (Users table) and UserID (Comment table).

What’s next? I don’t understand what I need to do? Set the source of my comments to “Comment text” (Comment table)?

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/3/e30cf4ec91019be0b4e62b8820d251ac55755efc.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/4/b42510b7b8a5be1083a575f94f0910ad9bdf8eb0.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/f/6f83217a40db1e880c10a129ae1fa7e6b7b1a19c.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [January 9, 2024, 3:29pm UTC](https://community.glideapps.com/t/separate-comment/69378/5 "2024-01-09T15:29:42Z")

</div>

The relation in your user table probably isn’t necessary unless you have a specific reason for adding it.

When adding a comment, make sure all of the columns in the comment table are getting filled. You should see the relation in your game table get populated for each comment for each respective game.

Finally make sure that the comments collection is sourced from that relation.

---

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 9, 2024, 3:33pm UTC](https://community.glideapps.com/t/separate-comment/69378/6 "2024-01-09T15:33:03Z")

</div>

I totally understand what you’re saying, but I have no idea how to apply it.  
Would it be possible for you to give me the steps for example? If you don’t mind?  
Or I’ll invite you to my glides

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [January 9, 2024, 3:47pm UTC](https://community.glideapps.com/t/separate-comment/69378/7 "2024-01-09T15:47:44Z")

</div>

Which step are you stuck on?

---

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 9, 2024, 4:02pm UTC](https://community.glideapps.com/t/separate-comment/69378/8 "2024-01-09T16:02:01Z")

</div>

Honestly, I’m still stuck on what I sent earlier.  
I still don’t quite understand the relation between the tables etc.  
I tried to do what the comments above said to do, but well.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [January 9, 2024, 4:05pm UTC](https://community.glideapps.com/t/separate-comment/69378/9 "2024-01-09T16:05:25Z")

</div>

The relation seems fine, but I would make sure to check the ‘Multiple’ checkbox because you will have more than one comment I assume.

Relations look for exact matches so as long as you are writing the GameID (RowID from Games table) to the comments table, then you should have exact matches between the game RowID and the ID written to the comments table.

---

<div class="post-metadata">

**Author:** ![slscustom.ru](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slscustom.ru/32/77336_2.png) [@slscustom.ru](https://community.glideapps.com/u/slscustom.ru)\
**Post date:** [January 9, 2024, 5:20pm UTC](https://community.glideapps.com/t/separate-comment/69378/10 "2024-01-09T17:20:36Z")

</div>

> [@Jeff\_Hager](#):
>
> make sure to check the ‘Multiple’ checkbox because you will have more than one comment

Just mark as Multi and use it as sourse for comment’s collection element

---

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 9, 2024, 5:51pm UTC](https://community.glideapps.com/t/separate-comment/69378/11 "2024-01-09T17:51:26Z")

</div>

I did it! Thank you so much!  
I’ll try to get on with the other things I need to create

---

<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:** [January 16, 2024, 5:51pm UTC](https://community.glideapps.com/t/separate-comment/69378/12 "2024-01-16T17:51:29Z")

</div>

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