# Can user set price for buy button?

**URL:** https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778
**Category:** Ask for Help
**Created:** [May 9, 2020, 2:00am UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778 "2020-05-09T02:00:48Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Amanda\_Peterson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/amanda_peterson/32/6362_2.png) [@Amanda\_Peterson](https://community.glideapps.com/u/Amanda_Peterson)
#### Post date: [May 9, 2020, 2:00am UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/1 "2020-05-09T02:00:48Z")

</div>

for the buy button, can the “Price” field be something the users sets? like for a donation?

---

<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: [May 9, 2020, 6:41pm UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/2 "2020-05-09T18:41:48Z")

</div>

Yes, just place an entry field next to the buy button where they can fill in an amount. Then use the column that’s filled by that entry field for your price on the buy button.

---

<div class="post-metadata">

### Author: ![Amanda\_Peterson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/amanda_peterson/32/6362_2.png) [@Amanda\_Peterson](https://community.glideapps.com/u/Amanda_Peterson)
#### Post date: [May 9, 2020, 9:32pm UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/3 "2020-05-09T21:32:47Z")

</div>

that is super helpful! tysm!

---

<div class="post-metadata">

### Author: ![sardamit](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sardamit/32/263_2.png) [@sardamit](https://community.glideapps.com/u/sardamit)
#### Post date: [May 9, 2020, 10:16pm UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/4 "2020-05-09T22:16:17Z")

</div>

What Jeff has recommended is the way to go.

A more sophisticated version is in action here: [https://artauction.glideapp.io/](https://artauction.glideapp.io/)

---

<div class="post-metadata">

### Author: ![Amanda\_Peterson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/amanda_peterson/32/6362_2.png) [@Amanda\_Peterson](https://community.glideapps.com/u/Amanda_Peterson)
#### Post date: [May 15, 2020, 5:34am UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/5 "2020-05-15T05:34:43Z")

</div>

So I’m having a bit of trouble.

Tldr. I added a form so a user can enter a custom amount for the item, but the form is submitted, the custom amount goes onto a new row and is not attached to the item. So I can’t get my buy button the details of the original item to reference this other row. Am I missing something obvious?

An item is a business users can donate to. The scenario I want to create is the ability for the user to donate a custom amount instead of the item having a predefined amount. So I’m saying if donation amount is not empty, then show the buy button / donate button.

If the donation amount is empty, then show this form. I have a form to add a custom amount, and when the form is submitted that custom amount gets entered on a new row where there are no details about the business or description. If I try to add another buy button it doesn’t work because it also sees that the custom amount for this row / this item is empty.

Let me know if I can clarify further

---

<div class="post-metadata">

### Author: ![sardamit](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sardamit/32/263_2.png) [@sardamit](https://community.glideapps.com/u/sardamit)
#### Post date: [May 15, 2020, 9:19am UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/6 "2020-05-15T09:19:39Z")

</div>

You have to pass the values of the business to the form tab before you do the check out option.

The workaround and a much cleaner implementation is to have a number entry component in the business details. The app I have linked above shows an implementation of this.

---

<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: [May 15, 2020, 11:48am UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/7 "2020-05-15T11:48:04Z")

</div>

I would avoid a form button altogether. Just place an entry field on the screen for the user to enter the donation amount and store it in a user specific column on the business sheet. Then display the buy button if the amount is filled. If you want a cleaner look, you can add a switch or checkbox to fill another user specific column on the business sheet. Once checked, then show the donation entry field. Once an amount is entered, show the buy button.

---

<div class="post-metadata">

### Author: ![TimNZ](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/timnz/32/2062_2.png) [@TimNZ](https://community.glideapps.com/u/TimNZ)
#### Post date: [May 15, 2020, 11:27pm UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/8 "2020-05-15T23:27:22Z")

</div>

How do you track users for conditional displaying of Buy Now button,  
if they haven’t signed in?  
I’m seeing Buy Now for items I’ve not bid on.

---

<div class="post-metadata">

### Author: ![sardamit](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sardamit/32/263_2.png) [@sardamit](https://community.glideapps.com/u/sardamit)
#### Post date: [May 16, 2020, 12:49pm UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/9 "2020-05-16T12:49:42Z")

</div>

Yeah, Tim. It doesn’t work for users who have not signed in.

---

<div class="post-metadata">

### Author: ![Amanda\_Peterson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/amanda_peterson/32/6362_2.png) [@Amanda\_Peterson](https://community.glideapps.com/u/Amanda_Peterson)
#### Post date: [May 17, 2020, 4:47am UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/10 "2020-05-17T04:47:45Z")

</div>

Custom amount is working now, thank you! field entry is the cleanest 🙂

---

<div class="post-metadata">

### Author: ![Amanda\_Peterson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/amanda_peterson/32/6362_2.png) [@Amanda\_Peterson](https://community.glideapps.com/u/Amanda_Peterson)
#### Post date: [May 24, 2020, 10:09pm UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/11 "2020-05-24T22:09:55Z")

</div>

I’m using this number entry for people to donate a custom amount but I noticed that it’s shared with all users and I don’t want it to be.

Current behavior: A user sets a custom donation amount and all other users see that custom amount preset in the field.

Desired behavior: A user sets a a custom amount and it’s user specific / other users don’t see this.

Is there something I can do to fix this?

---

<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: [May 24, 2020, 11:00pm UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/12 "2020-05-24T23:00:58Z")

</div>

> [@Jeff\_Hager](#):
>
> store it in a user specific column on the business sheet

> **[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: ![Amanda\_Peterson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/amanda_peterson/32/6362_2.png) [@Amanda\_Peterson](https://community.glideapps.com/u/Amanda_Peterson)
#### Post date: [May 24, 2020, 11:30pm UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/13 "2020-05-24T23:30:19Z")

</div>

That worked, thanks!

---

<div class="post-metadata">

### Author: ![Amanda\_Peterson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/amanda_peterson/32/6362_2.png) [@Amanda\_Peterson](https://community.glideapps.com/u/Amanda_Peterson)
#### Post date: [May 25, 2020, 3:38pm UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/14 "2020-05-25T15:38:15Z")

</div>

I’m getting an error that an item is no longer available. I’m wondering if it’s related to me making the custom amount a user specific column?

Do you know what might have happened here? @Jeff_Hager

---

<div class="post-metadata">

### Author: ![Amanda\_Peterson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/amanda_peterson/32/6362_2.png) [@Amanda\_Peterson](https://community.glideapps.com/u/Amanda_Peterson)
#### Post date: [May 25, 2020, 3:43pm UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/15 "2020-05-25T15:43:42Z")

</div>

I think it is related to that bc I just went back to not having it be user specific and the transaction was able to go through. Do you know how I can have a user specific custom amount donation field but also allow multiple people to purchase an item? Maybe I missed a step…

---

<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: [May 25, 2020, 10:50pm UTC](https://community.glideapps.com/t/can-user-set-price-for-buy-button/8778/16 "2020-05-25T22:50:31Z")

</div>

I think you may be right.

> [@Using Math column for Price in Stripe buy button](https://community.glideapps.com/t/using-math-column-for-price-in-stripe-buy-button/8926/2):
>
> The Buy Button only supports sheet columns right now.

I know people have worked around it in the past using scripting to clear the field periodically, but that was quite awhile ago…before we had user specific fields. My only other thought would be rows specific to each user, but that’s not very viable. Or create a form button to write a record in another sheet with the entered price, then display the record somewhere in your app with a buy button. Otherwise you could create preset donate amounts on separate buy buttons and conditionally show them based on a choice component.

@sardamit can you verify based on your post on this similar situation? Maybe try it in staging with the test credit car?

> [@Name your donation on stripe](https://community.glideapps.com/t/name-your-donation-on-stripe/7349):
>
> How can I add a name your donation section on the Buy button with Stripe? More like “name your price” where users can pay how much they want to donate. I am looking to add this feature on the Restaurant app.

More posts on this subject:

> [@Donation button](https://community.glideapps.com/t/donation-button/4709):
>
> Is it possible to set up the buy button so the customer select what they want to pay? I am creating a donation app and I would love to let my clients to donate however much they feel like. Thanks

> [@Make donations with buy button](https://community.glideapps.com/t/make-donations-with-buy-button/2262):
>
> Is there a way to allow users to make donations by specifying the amount of money that will be charged to their card or something along those lines.
