# Submit form + buy button action

**URL:** <https://community.glideapps.com/t/submit-form-buy-button-action/6540>\
**Category:** Ask for Help\
**Created:** [April 7, 2020, 4:22am UTC](https://community.glideapps.com/t/submit-form-buy-button-action/6540 "2020-04-07T04:22:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sean\_Pritzkau](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sean_pritzkau/32/4943_2.png) [@Sean\_Pritzkau](https://community.glideapps.com/u/Sean_Pritzkau)\
**Post date:** [April 7, 2020, 4:22am UTC](https://community.glideapps.com/t/submit-form-buy-button-action/6540/1 "2020-04-07T04:22:09Z")

</div>

Two part question:

**Part #1**

In my app, I have a shop item (coffee beans) that has some variables. (Origin & Grind Size).

I need a user to select the options, submit the form AND add to cart.

Currently, some are only doing one. (Submitting the form OR adding to cart.)

Is there a way to have someone submit the form and add to cart with one action or button click? My app is Public with Email.

**Part #2**

Once they submit this info and add it to cart, what’s the best way to associate the info to the purchase? Currently these show up in separate tabs. (Choice Responses and Stripe Purchases.)

Thanks in advance!

-Sean

– – – – – –

UPDATE: Adding screenshots of my app, as well as a couple relevant discussions that might help but aren’t solved.

- [Building a store](https://community.glideapps.com/t/building-a-store/3076)
- [Building Stripe Into a Form](https://community.glideapps.com/t/building-stripe-into-a-form/5190)

 ![IMG_4625.PNG](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/2/234e4d485b1b2969e443b4791604ee0aaebe7ef0.jpeg) ![IMG_4626.PNG](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/3/33060539c968323c8f4a4f5442f41876ddaebc1a.jpeg)

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [April 7, 2020, 2:58pm UTC](https://community.glideapps.com/t/submit-form-buy-button-action/6540/2 "2020-04-07T14:58:45Z")

</div>

There isn’t a way to do this yet…maybe clearly provide your users “Steps” for the form?

### Step 1: Select options

Include dropdowns

### Step 2: Add to cart

Include buy button

### Step 3: Click Submit

Screenshot of arrow pointing to Submit button? 🙃

As for linking, the only common columns would be email and product and day/hour of purchase, right? Could you create a template in each sheet with a combination of these values and then do a relation?

---

<div class="post-metadata">

**Author:** ![Sean\_Pritzkau](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sean_pritzkau/32/4943_2.png) [@Sean\_Pritzkau](https://community.glideapps.com/u/Sean_Pritzkau)\
**Post date:** [April 7, 2020, 3:11pm UTC](https://community.glideapps.com/t/submit-form-buy-button-action/6540/3 "2020-04-07T15:11:31Z")

</div>

Thanks Rob!

I might be too picky for the steps – thats alot of extra text. but I think having my note right below the add to cart button might help. #feature-requests

–

I’ve noticed that my App:Sales sheet doesn’t show up in my Glide Data editor. Is that normal?

I’ll add those columns and link them up. Does it matter if the date/time from the form isn’t precisely the same as the order submission? Or if they have a previous order in the sheet?

I’m hoping to wipe out orders somehow daily.

---

<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:** [April 7, 2020, 3:14pm UTC](https://community.glideapps.com/t/submit-form-buy-button-action/6540/4 "2020-04-07T15:14:35Z")

</div>

My take from the other thread.

> [@Product variants with buy button?](https://community.glideapps.com/t/product-variants-with-buy-button/6366/10):
>
> What if you use the form to write all of your products and quantities to a sheet with email and unique ID or row id. In essence a homemade shopping cart or a build order process. Then show the list to the user, have them add to the actual cart, and then have them complete their purchase. I’m envisioning that the unique ID or row id could be your SKU (Product ID). That way you have all the information you need to link the app:sales sheet to the order sheet.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [April 7, 2020, 3:39pm UTC](https://community.glideapps.com/t/submit-form-buy-button-action/6540/5 "2020-04-07T15:39:54Z")

</div>

yeah…you’d have to import them from the App Sales sheet the into a new sheet to make a relation. Exact time stamp won’t match, but you could get away with day/hour. Might not be needed at all, I was just thinking of repeat customers the same day perhaps.
