# Please help me with making a counter

**URL:** <https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313>\
**Category:** Get Help\
**Created:** [March 14, 2021, 4:35pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313 "2021-03-14T16:35:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiddo](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Kiddo](https://forum.adalo.com/u/Kiddo)\
**Post date:** [March 14, 2021, 4:35pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/1 "2021-03-14T16:35:58Z")

</div>

I would like to make a button that’s a down counter whenever the user clicks E.G: the text starts at number 16 and whenever the user presses the number goes down until 0. Please help me with making that function.

---

<div class="post-metadata">

**Author:** ![montetennis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/montetennis/32/5904_2.png) [@montetennis](https://forum.adalo.com/u/montetennis)\
**Post date:** [March 14, 2021, 6:12pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/2 "2021-03-14T18:12:31Z")

</div>

Well it’s quite easy.

- Add a numeric field to the users collection. Call it COUNTER
- Create a button that will make the counter decrease by 1
- Assign to the button an action, that updates the LOGGED IN USER - COUNTER by 1.  
You can obtain last point, by making the counter equal to LOGGED IN USER COUNTER (add from magic text) - 1.

Hope this is clear! 🙂

---

<div class="post-metadata">

**Author:** ![Kiddo](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Kiddo](https://forum.adalo.com/u/Kiddo)\
**Post date:** [March 15, 2021, 7:50am UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/3 "2021-03-15T07:50:36Z")

</div>

TBH, I can’t understand can you please give me an example of how to do that? I made a new click action ![E6F7D2E7-4363-4af5-A016-3A64D68CED53](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/1/1159525b4e7c3c16ae05820faddcd2305dc22e9b.png)  
and sorry I am just newbie at this.

---

<div class="post-metadata">

**Author:** ![montetennis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/montetennis/32/5904_2.png) [@montetennis](https://forum.adalo.com/u/montetennis)\
**Post date:** [March 15, 2021, 9:58am UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/4 "2021-03-15T09:58:06Z")

</div>

No problem. This is the setup you need to obtain. In my example, PRICE is the COUNTER

![immagine](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/d/d4f968e66c5116c2b6068eb434979c73ece974cd.png)

---

<div class="post-metadata">

**Author:** ![Kiddo](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Kiddo](https://forum.adalo.com/u/Kiddo)\
**Post date:** [March 15, 2021, 11:05am UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/5 "2021-03-15T11:05:10Z")

</div>

Well, it was increasing but I want the number to start at a certain number then decrease until zero that’s the hurdle at least for now I still can’t make the number at decrease

---

<div class="post-metadata">

**Author:** ![montetennis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/montetennis/32/5904_2.png) [@montetennis](https://forum.adalo.com/u/montetennis)\
**Post date:** [March 15, 2021, 11:36am UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/6 "2021-03-15T11:36:19Z")

</div>

Then instead of +1, just make -1! 🙂  
And the starting number, you can define it automatically when the user signsup

---

<div class="post-metadata">

**Author:** ![Kiddo](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Kiddo](https://forum.adalo.com/u/Kiddo)\
**Post date:** [March 15, 2021, 11:47am UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/7 "2021-03-15T11:47:20Z")

</div>

Well, tbh I want no users etc… I just want the number start at a certain number E.G: 15 and by clicking it decreases and from what I see the database keeps it so whenever a person presses on the button it accumulates etc… with no resetting except that I must delete the database that’s why I want no database tbh.

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [March 15, 2021, 1:28pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/8 "2021-03-15T13:28:52Z")

</div>

Try countdown component.

Or, you could make your own component.

---

<div class="post-metadata">

**Author:** ![Kiddo](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Kiddo](https://forum.adalo.com/u/Kiddo)\
**Post date:** [March 15, 2021, 2:56pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/9 "2021-03-15T14:56:05Z")

</div>

Where’s that countdown component please? Can you please give me a tutorial or something?

---

<div class="post-metadata">

**Author:** ![B0untiful\_26](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@B0untiful\_26](https://forum.adalo.com/u/B0untiful_26)\
**Post date:** [March 15, 2021, 3:24pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/10 "2021-03-15T15:24:51Z")

</div>

Countdown component is in the marketplace, once you click “+” to add new component you would see “Market Place” below, click on that scroll down until countdown appears, then downloads it, then use “Downloaded” and put it in your screen! There is 2 types of countdown component so which one you choose is up to you!

---

<div class="post-metadata">

**Author:** ![Kiddo](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Kiddo](https://forum.adalo.com/u/Kiddo)\
**Post date:** [March 15, 2021, 3:33pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/11 "2021-03-15T15:33:51Z")

</div>

Unfortunately it doesn’t look like what I want it’s about timer etc… I just want a button that does countdown the more the you press from a certain number and without it being saved in the database because I found out that the number is saved in the database.

---

<div class="post-metadata">

**Author:** ![B0untiful\_26](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@B0untiful\_26](https://forum.adalo.com/u/B0untiful_26)\
**Post date:** [March 15, 2021, 3:36pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/12 "2021-03-15T15:36:28Z")

</div>

Explain more, so you want countdown that happens every time user clicks what does it do?

---

<div class="post-metadata">

**Author:** ![Kiddo](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Kiddo](https://forum.adalo.com/u/Kiddo)\
**Post date:** [March 15, 2021, 3:43pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/13 "2021-03-15T15:43:17Z")

</div>

It doesn’t need to do anything just the more the user clicks the lower the number until 0 E.G: It starts with 15 and the user clicks it becomes 14 etc… until 0 tbh I haven’t figured anyway to do it and there are multiple problems that are facing me First: I haven’t found a way to put a number to start from. Second: I found that the database keep the numbers I just want the number to be kept as long as he’s in the same screen not all the time or for all users. Third the countdown I have the normal counter and I can do it np but I want a down counter

---

<div class="post-metadata">

**Author:** ![B0untiful\_26](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@B0untiful\_26](https://forum.adalo.com/u/B0untiful_26)\
**Post date:** [March 15, 2021, 4:53pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/14 "2021-03-15T16:53:41Z")

</div>

So you could make it if Logged In user clicked it updates number Current click -1

---

<div class="post-metadata">

**Author:** ![Kiddo](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Kiddo](https://forum.adalo.com/u/Kiddo)\
**Post date:** [March 15, 2021, 5:01pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/15 "2021-03-15T17:01:56Z")

</div>

Well, something like that but the database keeps it etc… I want it to be on the screen only then if he refreshes it or something it resets and I can’t find a way to make a base number until now

---

<div class="post-metadata">

**Author:** ![B0untiful\_26](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@B0untiful\_26](https://forum.adalo.com/u/B0untiful_26)\
**Post date:** [March 15, 2021, 5:15pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/16 "2021-03-15T17:15:13Z")

</div>

Here how it goes, It doesn’t save if you update it, What to do is make a button and make number is Current Number-1 and when user re-enters the website/app make a loading screen a home screen and say Add 5 points if Logged in user current number is less than 5.

---

<div class="post-metadata">

**Author:** ![Kiddo](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Kiddo](https://forum.adalo.com/u/Kiddo)\
**Post date:** [March 15, 2021, 5:29pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/17 "2021-03-15T17:29:46Z")

</div>

Well, tbh I really don’t understand and I want to make like 5 counters or something in just 1 page without users logging in or registering etc… so it would be best if it’s not complicated and without database at all.

---

<div class="post-metadata">

**Author:** ![B0untiful\_26](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@B0untiful\_26](https://forum.adalo.com/u/B0untiful_26)\
**Post date:** [March 15, 2021, 5:36pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/18 "2021-03-15T17:36:43Z")

</div>

I really don’t see a simple way on making this, this is only way I have! If you don’t understand I can make a cloneable app for you to learn from, but I am welcome to hear others for work way for it

---

<div class="post-metadata">

**Author:** ![Kiddo](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Kiddo](https://forum.adalo.com/u/Kiddo)\
**Post date:** [March 15, 2021, 5:43pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/19 "2021-03-15T17:43:37Z")

</div>

Please make a cloneable app so that I can learn this

---

<div class="post-metadata">

**Author:** ![B0untiful\_26](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@B0untiful\_26](https://forum.adalo.com/u/B0untiful_26)\
**Post date:** [March 15, 2021, 6:45pm UTC](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313/20 "2021-03-15T18:45:58Z")

</div>

I finished the cloneable app!

Learning is the key, enjoy!

[Cloneable [BY B0] (adalo.com)](https://teambountiful26th.adalo.com/cloneable-by-b0?target=818468a1bfad492599706dafa106d579&params=%7B%7D)

[Next page](https://forum.adalo.com/t/please-help-me-with-making-a-counter/10313.md?page=2)
