# How to make one buy button only show once for each user

**URL:** <https://community.glideapps.com/t/how-to-make-one-buy-button-only-show-once-for-each-user/39951>\
**Category:** Ask for Help\
**Created:** [March 22, 2022, 3:40pm UTC](https://community.glideapps.com/t/how-to-make-one-buy-button-only-show-once-for-each-user/39951 "2022-03-22T15:40:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denise\_Gamble](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/denise_gamble/32/16476_2.png) [@Denise\_Gamble](https://community.glideapps.com/u/Denise_Gamble)\
**Post date:** [March 22, 2022, 3:40pm UTC](https://community.glideapps.com/t/how-to-make-one-buy-button-only-show-once-for-each-user/39951/1 "2022-03-22T15:40:44Z")

</div>

I can’t seem to find a topic on my issue.

I have an app that caters to two different types of user’s. I decided to give a 24hr trial for a $1.00 before going full fledge, the paying user’s. I know how to add the trial component, but of course, I don’t want them to keep paying the lower amount if they like it. So how do I limit each user to only one trial? In other words, I don’t want the trial button to be visible again after it is used once by each user

---

<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:** [March 22, 2022, 3:54pm UTC](https://community.glideapps.com/t/how-to-make-one-buy-button-only-show-once-for-each-user/39951/2 "2022-03-22T15:54:56Z")

</div>

Are you using the native glide buy button?

---

<div class="post-metadata">

**Author:** ![Denise\_Gamble](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/denise_gamble/32/16476_2.png) [@Denise\_Gamble](https://community.glideapps.com/u/Denise_Gamble)\
**Post date:** [March 22, 2022, 4:13pm UTC](https://community.glideapps.com/t/how-to-make-one-buy-button-only-show-once-for-each-user/39951/3 "2022-03-22T16:13:39Z")

</div>

![Screenshot now](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/d/ad7af5572c081bf2c5c806598c01e5b10242d2fe.png)

I want this one component not to be visible for user after one use

---

<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:** [March 22, 2022, 4:18pm UTC](https://community.glideapps.com/t/how-to-make-one-buy-button-only-show-once-for-each-user/39951/4 "2022-03-22T16:18:15Z")

</div>

OK. I have another question. How do you have it set up so app knows when a purchase has been made and the full features are enabled for 24 hours?

---

<div class="post-metadata">

**Author:** ![Denise\_Gamble](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/denise_gamble/32/16476_2.png) [@Denise\_Gamble](https://community.glideapps.com/u/Denise_Gamble)\
**Post date:** [March 22, 2022, 4:19pm UTC](https://community.glideapps.com/t/how-to-make-one-buy-button-only-show-once-for-each-user/39951/5 "2022-03-22T16:19:49Z")

</div>

![Screenshot now 2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/b/2b9a33236455c460ff58415b782f2aae8cade54f.png)

---

<div class="post-metadata">

**Author:** ![Denise\_Gamble](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/denise_gamble/32/16476_2.png) [@Denise\_Gamble](https://community.glideapps.com/u/Denise_Gamble)\
**Post date:** [March 22, 2022, 4:21pm UTC](https://community.glideapps.com/t/how-to-make-one-buy-button-only-show-once-for-each-user/39951/6 "2022-03-22T16:21:37Z")

</div>

![Screenshot now 3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/b/aba4493dfa5cb412ab63aef0eaeebed87f7cadb9.png)

Does this answer the question?

---

<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:** [March 22, 2022, 4:39pm UTC](https://community.glideapps.com/t/how-to-make-one-buy-button-only-show-once-for-each-user/39951/7 "2022-03-22T16:39:06Z")

</div>

OK, this shouldn’t be too bad. Looking at your profile table, I see you are pulling in the last purchase type. I’m assuming that if a user purchased a 1 day trial, and later purchased a full subscription, then the last purchase type would be the full subscription? I’m assuming that you use the email for a relation to the sales table?

I started to write out a longer answer and thought of something better. If you have a relation from the profile table to the sales table, then you already know that they have made purchase in the past, regardless if it was a trial or full subscription. You should be able to set a visibility condition on the button to only show if the relation (User Profile → Relation) is empty. If it is not empty, then they have made a purchase.

---

<div class="post-metadata">

**Author:** ![Denise\_Gamble](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/denise_gamble/32/16476_2.png) [@Denise\_Gamble](https://community.glideapps.com/u/Denise_Gamble)\
**Post date:** [March 22, 2022, 4:52pm UTC](https://community.glideapps.com/t/how-to-make-one-buy-button-only-show-once-for-each-user/39951/8 "2022-03-22T16:52:15Z")

</div>

Is there a link or video explaining this? I think I have it but for some reason its really not clicking in my head… LOL

---

<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:** [March 22, 2022, 4:54pm UTC](https://community.glideapps.com/t/how-to-make-one-buy-button-only-show-once-for-each-user/39951/9 "2022-03-22T16:54:31Z")

</div>

I don’t have a specific video. Where are you getting stuck?
