# How to display the comment button after the item purchased

**URL:** <https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690>\
**Category:** Ask for Help\
**Created:** [February 12, 2021, 7:00pm UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690 "2021-02-12T19:00:44Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Galerie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/galerie/32/21375_2.png) [@Galerie](https://community.glideapps.com/u/Galerie)\
**Post date:** [February 12, 2021, 7:00pm UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/1 "2021-02-12T19:00:44Z")

</div>

Hello Gliders 👋

I am sending this message since I need some help. I would like to display the comment button on the seller profile. So that the buyer user will be able to put comments, but I would like to display the comments button only if the buyer brought a items to the seller. Is anyone has a solution or method to do this ?

For information, I am using stripe and I have already a system with buyer and seller.

Thanks in advance !

Regards,

---

<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:** [February 12, 2021, 11:40pm UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/2 "2021-02-12T23:40:30Z")

</div>

Are you using a form to write new comments or a comments component?

Whatever you use, you can integrate conditional visibility to get what you want.

I’m assuming you use Glide’s integrated buying flow. You would want to make a “mirrored” sheet of the App: Sales sheet.

Then, from the SKU name/SKU ID of each purchase, do a relation & lookup to return the Seller’s ID.

In the Profiles sheet, make a relation of the user email to the Sales sheet, then a joined list column to return all seller IDs the user has purchased from.

On each seller profile, show the comments component/comment form only when the seller ID is included in the list above.

---

<div class="post-metadata">

**Author:** ![Galerie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/galerie/32/21375_2.png) [@Galerie](https://community.glideapps.com/u/Galerie)\
**Post date:** [February 13, 2021, 9:32pm UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/3 "2021-02-13T21:32:42Z")

</div>

Hello @ThinhDinh,

Thanks for your detailed response !  
I tried your solution and it seems to work. I am still testing.

Regards, .

---

<div class="post-metadata">

**Author:** ![Galerie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/galerie/32/21375_2.png) [@Galerie](https://community.glideapps.com/u/Galerie)\
**Post date:** [February 25, 2021, 4:29pm UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/4 "2021-02-25T16:29:15Z")

</div>

Hello @ThinhDinh,

I tested the solution again but it seems not working.  
When I create a new user without any purchase, the joined list column return all seller IDs automatically in the new user row’s.

Could you please advise ?

Regards

---

<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:** [February 25, 2021, 11:16pm UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/5 "2021-02-25T23:16:28Z")

</div>

Can you send over some screenshots of the settings you currently have? Thank you.

---

<div class="post-metadata">

**Author:** ![Galerie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/galerie/32/21375_2.png) [@Galerie](https://community.glideapps.com/u/Galerie)\
**Post date:** [February 25, 2021, 11:17pm UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/6 "2021-02-25T23:17:20Z")

</div>

Sure @ThinhDinh sending

---

<div class="post-metadata">

**Author:** ![Galerie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/galerie/32/21375_2.png) [@Galerie](https://community.glideapps.com/u/Galerie)\
**Post date:** [February 25, 2021, 11:35pm UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/7 "2021-02-25T23:35:17Z")

</div>

Hello @ThinhDinh

Please find all screenshots of my settings and information.

 ![Screenshot of all](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/b/5be21636a7ca4681554f1ec06c45cb20d7a701c0.jpeg)

Thanks in advance for your help

---

<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:** [February 25, 2021, 11:37pm UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/8 "2021-02-25T23:37:46Z")

</div>

> [@ThinhDinh](#):
>
> In the Profiles sheet, make a relation of the user email to the Sales sheet, then a joined list column to return all seller IDs the user has purchased from.

Sounds like this was the problem. If you got the structure right, I believe the sales rel should be the user’s email to the purchaser’s email column in your sales sheet. Then the joined text column returns the seller ID.

---

<div class="post-metadata">

**Author:** ![Galerie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/galerie/32/21375_2.png) [@Galerie](https://community.glideapps.com/u/Galerie)\
**Post date:** [February 26, 2021, 12:02am UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/9 "2021-02-26T00:02:34Z")

</div>

Thanks @ThinhDinh for the advise, I did the change but it seems I still have the same result.  
Please find the screenshot.

 ![Screenshot 2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/b/cbe744fd0f2fb21e6929a479dbe31db0955662c8.jpeg)

Should I change something in the joined list ?

---

<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:** [February 26, 2021, 12:25am UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/10 "2021-02-26T00:25:35Z")

</div>

Make sure you got the following settings.

Relation from Profiles \> Sales: Email matching with Purchaser Email (Match multiple)

Joined list in Profiles sheet: Return all Vendor ID (assuming you have that already as you noted above)

---

<div class="post-metadata">

**Author:** ![Galerie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/galerie/32/21375_2.png) [@Galerie](https://community.glideapps.com/u/Galerie)\
**Post date:** [February 26, 2021, 12:41am UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/11 "2021-02-26T00:41:01Z")

</div>

Many thanks 😃 @ThinhDinh I make to use the relation in Joined list and it’s OK now.

And how may I set the visibility on the comment button ? to display only if the user has purchased the item in the seller profile ?

---

<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:** [February 26, 2021, 2:01am UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/12 "2021-02-26T02:01:36Z")

</div>

The visibility condition should be:

If screen’s seller ID is included in signed-in user’s joined list.

---

<div class="post-metadata">

**Author:** ![Galerie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/galerie/32/21375_2.png) [@Galerie](https://community.glideapps.com/u/Galerie)\
**Post date:** [February 26, 2021, 12:54pm UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/13 "2021-02-26T12:54:20Z")

</div>

Many thanks @ThinhDinh ! 😊

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:53pm UTC](https://community.glideapps.com/t/how-to-display-the-comment-button-after-the-item-purchased/22690/14 "2024-01-17T16:53:14Z")

</div>

Closed on January 17, 2024, 4:53pm UTC


