# Pins of differents colors and pass variable to another page

**URL:** https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650
**Category:** Ask for Help
**Created:** [June 2, 2022, 9:28am UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650 "2022-06-02T09:28:56Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![yoannh21](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yoannh21/32/47922_2.png) [@yoannh21](https://community.glideapps.com/u/yoannh21)
#### Post date: [June 2, 2022, 9:28am UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/1 "2022-06-02T09:28:56Z")

</div>

Hello!

I have two problems to solve:  
1-I used this topic: [differents pins colors topic](https://community.glideapps.com/t/css-custom-color-for-map-pins/30641?fbclid=IwAR0SOGaT3lpoJg_2yHSXgZfLBW_kATuxw8njGM2qFhvtAkL-54mC5JFhKDU) to create a map with different pins colors. But when I click on a pin I can’t display the title (if I do it I lost the differents pins colors, I must display the location.)

 ![Capture d’écran 2022-06-02 à 11.21.19](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/0/4045248097584ce4b75a834c81fb45c64e6a6107.jpeg)

I have that in my table:

 ![Capture d’écran 2022-06-02 à 11.23.27](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/0/9019de3cd4fce1333ca5f5e67e49e515be64c38c.png)  
What can I do?

2-I created a chat on my app using a specific table that is just called “Chat”. When I click on a discussion I have all the messages of all discussions independently of the discussion subject. How can I pass the subject of the discussion (which is stock in another table) to the other page and use an option\>visibility to display only the messages of the discussion selected?

Thanks for your answers.  
Yoann

---

<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: [June 2, 2022, 11:48pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/2 "2022-06-02T23:48:29Z")

</div>

Hi, for the first one do you have an “Address” field in your data to display? If so, you can just display it as the title, and change the {T} variable in your template to that field, I guess?

---

<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: [June 2, 2022, 11:50pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/3 "2022-06-02T23:50:26Z")

</div>

> [@yoannh21](#):
>
> How can I pass the subject of the discussion (which is stock in another table) to the other page and use an option\>visibility to display only the messages of the discussion selected

Are you allowing users to send new messages using a form, or is it a comments component?

If it’s a comments component, you can specify the “key” of the discussion in the component configuration.

If it’s a form, you can pass the key (ideally rowID of the discussion) using a special value.

> **[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: ![yoannh21](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yoannh21/32/47922_2.png) [@yoannh21](https://community.glideapps.com/u/yoannh21)
#### Post date: [June 3, 2022, 8:41am UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/4 "2022-06-03T08:41:57Z")

</div>

Hi ThinhDinh!

Tanks for your answer. About the first problem, what I want to display is the title of the event like “Tennis”. About the second problem I’m not using comments. I have my own table. So yes there is a text entry.

---

<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: [June 3, 2022, 8:57am UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/5 "2022-06-03T08:57:29Z")

</div>

> [@yoannh21](#):
>
> Tanks for your answer. About the first problem, what I want to display is the title of the event like “Tennis”.

Yeah, then I assume you can follow what I said above. Let me know if you have any problems.

> [@yoannh21](#):
>
> About the second problem I’m not using comments. I have my own table. So yes there is a text entry.

Yes, then you can use special value to pass the rowID of the screen you are putting the form/text entry on.

---

<div class="post-metadata">

### Author: ![yoannh21](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yoannh21/32/47922_2.png) [@yoannh21](https://community.glideapps.com/u/yoannh21)
#### Post date: [June 3, 2022, 8:57am UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/6 "2022-06-03T08:57:48Z")

</div>

I have maybe a solution for the second problem but I need to copy automatically a complete column in another one (of another table). And if there is a new value in the first column, the second one is updated. Secondly I need to group the lined displayed (of a list) which have the same title. If I can do it the second problem should be solved.

---

<div class="post-metadata">

### Author: ![yoannh21](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yoannh21/32/47922_2.png) [@yoannh21](https://community.glideapps.com/u/yoannh21)
#### Post date: [June 3, 2022, 9:06am UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/7 "2022-06-03T09:06:17Z")

</div>

For the first problem: “Hi, for the first one do you have an “Address” field in your data to display? If so, you can just display it as the title, and change the {T} variable in your template to that field, I guess?” I always tested, if I do that I lose the differents colors.

---

<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: [June 3, 2022, 12:13pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/8 "2022-06-03T12:13:47Z")

</div>

I think you have to make sure that the {T} value and the Title match, regardless of which value you choose to use. Are they both pointing to the same column value?

---

<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: [June 3, 2022, 12:17pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/9 "2022-06-03T12:17:21Z")

</div>

Yes, if this is the setup then I think it should work.

---

<div class="post-metadata">

### Author: ![yoannh21](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yoannh21/32/47922_2.png) [@yoannh21](https://community.glideapps.com/u/yoannh21)
#### Post date: [June 3, 2022, 12:21pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/10 "2022-06-03T12:21:35Z")

</div>

It is working! And for the second problem? My objective is just to make a chat. And I can’t retrieve the name of the activity when I open a conversation. I have the messages of all others conversations.

---

<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: [June 3, 2022, 12:42pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/11 "2022-06-03T12:42:20Z")

</div>

Do you have any screenshots showing how you have your chat set up and how you navigate to it? It seems to me like you could just use a relation looking the subject and then display your chat list by sourcing it from the relation.

---

<div class="post-metadata">

### Author: ![yoannh21](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yoannh21/32/47922_2.png) [@yoannh21](https://community.glideapps.com/u/yoannh21)
#### Post date: [June 3, 2022, 12:54pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/12 "2022-06-03T12:54:13Z")

</div>

The table used to display the list of conversations is “Activities”, and the table used to display the messages of a conversation is “Chat”. It is something like that (sorry for all the french words):

 ![Capture d’écran 2022-06-03 à 14.45.57](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/d/ed5cd121cb8599db9793ba2c0a3b76dbf6868b49.jpeg)

 ![Capture d’écran 2022-06-03 à 14.52.34](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/0/10d4a0df6764975d46f9a5321ae1e54ed4f53aef.jpeg)

---

<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: [June 3, 2022, 1:01pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/13 "2022-06-03T13:01:35Z")

</div>

So when you click to view the details a specific conversation, it’s (Activity), it’s the Chat list that isn’t filtered and show chat messages for all activities? If you have a relation linking the Activities table to the Chat table, then you can just use the relation as the source of your chat inline list instead of the whole chat table.

---

<div class="post-metadata">

### Author: ![yoannh21](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yoannh21/32/47922_2.png) [@yoannh21](https://community.glideapps.com/u/yoannh21)
#### Post date: [June 3, 2022, 1:15pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/14 "2022-06-03T13:15:25Z")

</div>

1-But even if I link the two tables by a relation column I can’t display the info of the other table? And another problem is that I created the row of the discussion manually.  
2-Maybe it will be easier with comments but users can’t delete their own comments with glide?  
3-If there are a lot of comment the field appears always at the end so the user should scroll a lot to send a comment?

---

<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: [June 3, 2022, 1:36pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/15 "2022-06-03T13:36:28Z")

</div>

> [@yoannh21](#):
>
> 1-But even if I link the two tables by a relation column I can’t display the info of the other table? And another problem is that I created the row of the discussion manually.

I don’t understand. What do you mean by this? I trust you have some piece of information in the chat table to identify which activity each chat message belongs to? Why can’t you use the relation as the source of your inline list on the activity detail screen?

> [@yoannh21](#):
>
> 2-Maybe it will be easier with comments but users can’t delete their own comments with glide?

No. user cannot delete their own comments in the native comment component. Only you can though the glide builder.

> [@yoannh21](#):
>
> 3-If there are a lot of comment the field appears always at the end so the user should scroll a lot to send a comment?

I don’t remember for sure, but if that is what you are seeing, then yes, that’s true.

---

<div class="post-metadata">

### Author: ![yoannh21](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yoannh21/32/47922_2.png) [@yoannh21](https://community.glideapps.com/u/yoannh21)
#### Post date: [June 3, 2022, 1:44pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/16 "2022-06-03T13:44:17Z")

</div>

“Why can’t you use the relation as the source of your inline list on the activity detail screen?” That’s what I do but in the section “Content” I don’t watch the columns of the chat table but the colums of the Activities table:

 ![Capture d’écran 2022-06-03 à 15.42.22](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/7/878f6d847c2130979de514158ae9644cad9c2ad0.png)

---

<div class="post-metadata">

### Author: ![yoannh21](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yoannh21/32/47922_2.png) [@yoannh21](https://community.glideapps.com/u/yoannh21)
#### Post date: [June 3, 2022, 8:36pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/17 "2022-06-03T20:36:13Z")

</div>

Is it possible to merge the cells of the same column with the same value in my table? It could help me for that problem.

---

<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: [June 3, 2022, 10:41pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/18 "2022-06-03T22:41:18Z")

</div>

> [@yoannh21](#):
>
> but in the section “Content” I don’t watch the columns of the chat table but the colums of the Activities table:

Maybe I’m not understanding your problem. You have a list for each chat message from the chat table, but you don’t want to display details from that table in your list??? If you want data to display info from the Activities table in the list content, you can create a single relation from the chat table to the activities table and create lookup columns to bring the column values you want into the chat table.

> [@yoannh21](#):
>
> Is it possible to merge the cells of the same column with the same value in my table? It could help me for that problem

Not sure I follow on this one either, but if I’m understanding correctly, you could create a relation the links that value to all other rows with the same value, and then create a joined list column to merge a value from all related rows into a single cell.

---

<div class="post-metadata">

### Author: ![yoannh21](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yoannh21/32/47922_2.png) [@yoannh21](https://community.glideapps.com/u/yoannh21)
#### Post date: [June 4, 2022, 7:51am UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/19 "2022-06-04T07:51:48Z")

</div>

Hello Jeff\_Hager,

In fact I have a list of activities and when I click on an item of the list I display the conversation about this activity. And when I display the conversation I have all the messages (of all activities). When I do: Option\>visibility\>Show the component when. And when what? I can’t retrieve the name of the activity that the user has selected. That why what I was thinking is to create a variable with the row id of the activity when the user click on the activity item. And then I do something like Option\>visibility\>Show the component when the row id is variable. It is frustrating because I have the name of the activity diplayed a the top of the conversation screen and I can’t use it.

---

<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: [June 4, 2022, 2:09pm UTC](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650/20 "2022-06-04T14:09:59Z")

</div>

Visibility shouldn’t be part of this. Visibility is to hide or show the component. It doesn’t filter the contents. You can use a filter, but I really feel that this should be possible and preferred with a relation. I feel like I’m missing some key piece of information about how you have this set up, because this should be a pretty simple.

Can you provide screenshots of the following:

- Your Activities table
- Your Chat table
- The configuration of the relation column that links the Activities table to the Chat table.
- The source table of your chat tab
- The source of the inline list on the details screen of your chosen activity.

Please include as much of your screen as possible instead of small snippets. There is a lot of context in a screenshot that can be excluded if the snippet is too small.

As I understand it, the main problem is that when you select an activity to view it’s details, you are seeing an inline for chat, but it’s showing chat for all activities. A relation will take care of this very easily.

[Next page](https://community.glideapps.com/t/pins-of-differents-colors-and-pass-variable-to-another-page/42650.md?page=2)
