# 🧙‍♂️ How to create a "Badge" reward system when users complete activities

**URL:** <https://forum.adalo.com/t/how-to-create-a-badge-reward-system-when-users-complete-activities/28388>\
**Category:** Resources & Tutorials\
**Created:** [June 17, 2022, 10:24am UTC](https://forum.adalo.com/t/how-to-create-a-badge-reward-system-when-users-complete-activities/28388 "2022-06-17T10:24:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [June 17, 2022, 10:24am UTC](https://forum.adalo.com/t/how-to-create-a-badge-reward-system-when-users-complete-activities/28388/1 "2022-06-17T10:24:33Z")

</div>

Today’s tutorial is a request from @Erik to create a reward system for when users complete activities in the app.

Erik: _“Hey everyone, wondering if anyone has a good idea on how to reward users based on activity counts? For example, let’s say I have a fitness app where users run, swim, and bike. I have set badges (10 swims, 50 swims, 10 bikes, 25 bikes, etc), is there a good way to do this in adalo? or is it best to do it in integromat?”_

Here’s how you can do it using just the internal Adalo database.

You’ll need 3 collections, Badges, Activities, and Entries.

**Badges Collection:**  
Name (text)  
Image  
Milestone (number)  
Activity (one-to-many where a badge belongs to 1 activity, activity can have multiple badges)  
Users (many-to-many)

 ![Screen Shot 2022-06-17 at 4.17.36 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/9/6/969b56500d974126f57766fcd19d75b72882d8dd.png)

**Activities Collection:**  
Name (text)  
Badges relationship

 ![Screen Shot 2022-06-17 at 4.17.47 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/7/8/78ae69259cac0153e1b800835dd552571bcb13de.png)

**Entries Collection:**  
Name (text)  
User relationship (one-to-many where an entry belongs to 1 user, user can have many entries)  
Activity relationship (entries can have 1 activity, activities can have more than 1 entry)

 ![Screen Shot 2022-06-17 at 4.17.57 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/b/a/ba983cf508c1478529fd8907575d807909750fee.png)

Have your list of activities that then links to an activity details screen.

 ![Screen Shot 2022-06-17 at 4.18.10 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/f/6/f6bb294801057cf365dab8d11b2cd824aa2da1dc.png)

Add a button to the details screen that creates an entry when a user completes the task and link to a new screen called “Completed activity”

 ![Screen Shot 2022-06-17 at 4.18.37 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/5/a/5ab8fc5f70b7cfe6abd8c6c89269ee3eafcc11f3.png)

Add an input and 2 countdown timers to the new “competed activity” screen. Set the default value of the input to logged-in user entries count with a filter where activity name is equal to current activity name. Rename the input “Entry Count Input”

 ![Screen Shot 2022-06-17 at 4.18.51 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/c/f/cfcf2fb52b883effb68323230d692489667e4506.jpeg)

With the first countdown timer, make a list of Badges \> current activity badges where milestone is equal to entry count input with a maximum number of items set to 1. Set the visibility of this list to sometimes where current activity badges count is not equal to 0 where milestone is equal to entry count input. This timer rewards the user with a badge if there is a milestone number that matches that specific activity.

 ![Screen Shot 2022-06-17 at 4.20.09 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/f/7/f7c8db0d7af5b1535bb4c6b5c3e6c43f47bf33e8.png)

Add an action to update the badge to add the logged in user to this countdown and link to a “badge earned” screen.

 ![Screen Shot 2022-06-17 at 4.21.13 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/5/3/5307d8bbe774147ab95710cbd53e5959bac3e2bb.jpeg)

For the 2nd countdown timer, set the visibility to sometimes when current activity badgeas count is equal to 0 where milestone is equal to entry count input. Add an action to link back to the list screen, in this case, it’s the home screen. This timer sends the user back without rewarding a badge to the user.

 ![Screen Shot 2022-06-17 at 4.22.02 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/f/d/fd076572607f33830ec1547e1b50a6204cd20109.png)

You can then make a list of the badges the user has earned:

 ![Screen Shot 2022-06-17 at 4.23.42 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/8/a/8af3333b6180d6135b1871384976e3fbc05ce33a.jpeg)

That’s how you’d create a reward badge system 🧙‍♂️

---

<div class="post-metadata">

**Author:** ![Erik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/erik/32/7849_2.png) [@Erik](https://forum.adalo.com/u/Erik)\
**Post date:** [June 17, 2022, 4:38pm UTC](https://forum.adalo.com/t/how-to-create-a-badge-reward-system-when-users-complete-activities/28388/2 "2022-06-17T16:38:21Z")

</div>

Extremely clever!

---

<div class="post-metadata">

**Author:** ![buenajill](https://avatars.discourse-cdn.com/v4/letter/b/9de0a6/32.png) [@buenajill](https://forum.adalo.com/u/buenajill)\
**Post date:** [July 10, 2022, 10:03pm UTC](https://forum.adalo.com/t/how-to-create-a-badge-reward-system-when-users-complete-activities/28388/3 "2022-07-10T22:03:04Z")

</div>

Hello, can you explain how I would modify it so that I can set up the activities that will be rewarded? For example, if I want my user to receive a badge for creating a profile, or posting a certain amount of times, etc.?

Thank you so much! The explanation thus far has been very clear!

---

<div class="post-metadata">

**Author:** ![Puma17](https://avatars.discourse-cdn.com/v4/letter/p/ee7513/32.png) [@Puma17](https://forum.adalo.com/u/Puma17)\
**Post date:** [July 13, 2022, 9:36am UTC](https://forum.adalo.com/t/how-to-create-a-badge-reward-system-when-users-complete-activities/28388/4 "2022-07-13T09:36:21Z")

</div>

Hello! In first place, thank you for your guide, it’s awesome! By the way, I’m quite a newbie in this world and can’t find how to make a countdown timer. Could you help me? Thanks!

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [July 13, 2022, 9:42am UTC](https://forum.adalo.com/t/how-to-create-a-badge-reward-system-when-users-complete-activities/28388/5 "2022-07-13T09:42:10Z")

</div>

@buenajill Add a “Completed Activity” screen after registration with a countdown timer within a list of badges that has a custom filter for the specified badge. Do the same after the user posts x amount of times by using a condition on the action with the user’s post count.

> [@Puma17](#):
>
> Hello! In first place, thank you for your guide, it’s awesome! By the way, I’m quite a newbie in this world and can’t find how to make a countdown timer. Could you help me? Thanks!

Click the + icon to get to the components panel. Click “Explore Marketplace” and search “countdown”. Then click install.

 ![Screen Shot 2022-07-13 at 3.41.58 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/f/a/fad3e4030a4351bdc02ca4fe08efe49d248555cf.png)

---

<div class="post-metadata">

**Author:** ![Puma17](https://avatars.discourse-cdn.com/v4/letter/p/ee7513/32.png) [@Puma17](https://forum.adalo.com/u/Puma17)\
**Post date:** [July 13, 2022, 9:44am UTC](https://forum.adalo.com/t/how-to-create-a-badge-reward-system-when-users-complete-activities/28388/6 "2022-07-13T09:44:03Z")

</div>

My bad, really, I didn’t see it on the marketplace… lol

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [July 13, 2022, 9:45am UTC](https://forum.adalo.com/t/how-to-create-a-badge-reward-system-when-users-complete-activities/28388/7 "2022-07-13T09:45:53Z")

</div>

😆 no worries, glad you found the info helpful

---

<div class="post-metadata">

**Author:** ![Puma17](https://avatars.discourse-cdn.com/v4/letter/p/ee7513/32.png) [@Puma17](https://forum.adalo.com/u/Puma17)\
**Post date:** [July 13, 2022, 10:26am UTC](https://forum.adalo.com/t/how-to-create-a-badge-reward-system-when-users-complete-activities/28388/8 "2022-07-13T10:26:40Z")

</div>

Yep, I just made it right now, many thanks!

---

<div class="post-metadata">

**Author:** ![buenajill](https://avatars.discourse-cdn.com/v4/letter/b/9de0a6/32.png) [@buenajill](https://forum.adalo.com/u/buenajill)\
**Post date:** [July 14, 2022, 6:06pm UTC](https://forum.adalo.com/t/how-to-create-a-badge-reward-system-when-users-complete-activities/28388/9 "2022-07-14T18:06:51Z")

</div>

I am sorry, I am a bit daft and need more explaining.

So, if I want my user to earn a badge after **receiving five likes** , I would create an activity that says “received five likes” then link this to…? I am still not getting how I create these activities that will then trigger the badge? Can you possible elaborate further, I am so sorry for the bother.
