# Increment counter and Form

**URL:** <https://community.glideapps.com/t/increment-counter-and-form/19841>\
**Category:** Ask for Help\
**Created:** [December 14, 2020, 2:23pm UTC](https://community.glideapps.com/t/increment-counter-and-form/19841 "2020-12-14T14:23:53Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mns\_Glide](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mns_glide/32/2514_2.png) [@Mns\_Glide](https://community.glideapps.com/u/Mns_Glide)\
**Post date:** [December 14, 2020, 2:23pm UTC](https://community.glideapps.com/t/increment-counter-and-form/19841/1 "2020-12-14T14:23:53Z")

</div>

Hi,  
I setup a compounded action for a button

1. Form
2. Increment a User specific counter
3. Success Notification

What I notice is once button is pressed, which takes you to a form, counter already increased by 1 and success notification is sent.  
When I fill up the form data and click submit then another count is made…so for a single submission of form we have two counts. If the form is abandoned (Cancel), the count is increase by one.  
This causes much unpredictability as I am using the count to determine when to hide the form button, i.e. if already submitted, then form button should be hidden.

Anyone having same issue of increment issue? What would be a better way to implement this task.

Thanks

---

<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:** [December 14, 2020, 2:36pm UTC](https://community.glideapps.com/t/increment-counter-and-form/19841/2 "2020-12-14T14:36:38Z")

</div>

You don’t need to have the increment and success happen before the form is submitted. You can configure that action in the form itself, so it only happens after the form has been submitted.

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [December 14, 2020, 2:46pm UTC](https://community.glideapps.com/t/increment-counter-and-form/19841/3 "2020-12-14T14:46:16Z")

</div>

I’m having trouble with increment and form too

My case is different, but I still have a bug happening

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [December 14, 2020, 2:52pm UTC](https://community.glideapps.com/t/increment-counter-and-form/19841/4 "2020-12-14T14:52:32Z")

</div>

Name in **User sheet** before submit form

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/c/fc4f63194d9781306db1635f0276e7baebabecc2.png)

Name after submit form, incrementing 1 in **Answers sheet** (like ??? lol)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/f/9fdd8f76d7888248b786b9f5910b0d653890dd0b.png)

---

<div class="post-metadata">

**Author:** ![Mns\_Glide](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mns_glide/32/2514_2.png) [@Mns\_Glide](https://community.glideapps.com/u/Mns_Glide)\
**Post date:** [December 14, 2020, 2:53pm UTC](https://community.glideapps.com/t/increment-counter-and-form/19841/5 "2020-12-14T14:53:49Z")

</div>

Hi,  
Inside the form, there is an increment for a counter?

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [December 14, 2020, 2:58pm UTC](https://community.glideapps.com/t/increment-counter-and-form/19841/6 "2020-12-14T14:58:59Z")

</div>

Hey @Mns_Glide,

Inside the form you can set up actions to be done after the form is submitted. For that you need to open the form and go to the “Feature” on your right menu.

---

<div class="post-metadata">

**Author:** ![Mns\_Glide](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mns_glide/32/2514_2.png) [@Mns\_Glide](https://community.glideapps.com/u/Mns_Glide)\
**Post date:** [December 14, 2020, 3:31pm UTC](https://community.glideapps.com/t/increment-counter-and-form/19841/7 "2020-12-14T15:31:12Z")

</div>

thanks @SantiagoPerez

when I add form button, under features i can setup increment to a column called Counter…but after submitting the form a few times, the rows as added as expected from the form, but the counter still does not increment…you may see the pictures below. Any other suggestions?

 ![form1](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/3/53108774237b27e351604a88ac159b69a30e59db.jpeg)

 ![form1a](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/a/eaf7a8b8f901231ddf8623297250687faf84df5e.jpeg)

---

<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:** [December 14, 2020, 3:45pm UTC](https://community.glideapps.com/t/increment-counter-and-form/19841/8 "2020-12-14T15:45:23Z")

</div>

Does the counter column live in the submissions sheet or the original sheet?

---

<div class="post-metadata">

**Author:** ![Mns\_Glide](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mns_glide/32/2514_2.png) [@Mns\_Glide](https://community.glideapps.com/u/Mns_Glide)\
**Post date:** [December 14, 2020, 4:08pm UTC](https://community.glideapps.com/t/increment-counter-and-form/19841/9 "2020-12-14T16:08:57Z")

</div>

Submissions sheet

---

<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:** [December 14, 2020, 4:16pm UTC](https://community.glideapps.com/t/increment-counter-and-form/19841/10 "2020-12-14T16:16:21Z")

</div>

And it only lets you increment a column in the Submissions sheet, I suppose.

For your purpose, making a relation to check if the submission is empty or not is a good way to do it.

About the increment in the original compound (not the form one), it will run without waiting for the form to submit so if you want to keep that flow, I would suggest:

Linking a button to a “Link to screen” action, link to “this item”.

Create user specific columns to temporarily store input data.

Use as many entry components as you need on that new screen.

Make a button with the compound containing an add row action, a set column to clear all entry values, a go back and show notification to complete the form mimic.

---

<div class="post-metadata">

**Author:** ![Mns\_Glide](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mns_glide/32/2514_2.png) [@Mns\_Glide](https://community.glideapps.com/u/Mns_Glide)\
**Post date:** [December 15, 2020, 5:24am UTC](https://community.glideapps.com/t/increment-counter-and-form/19841/11 "2020-12-15T05:24:45Z")

</div>

thanks Thinh.

I think relations is best way for my use case. I had multiple challenges, eg Quiz or submit photos, and the best way was to

1. do relation between Event and Responses and then look up the number of submissions based on signed in User
2. Use If-then-else to filter the number of submissions for the Event I wanted
3. use the number of submissions to control visibility of the Form Button according to my need.

Thanks for throwing different ideas to help.
