# Progress Bar for completion

**URL:** <https://forum.bubble.io/t/progress-bar-for-completion/37002>\
**Category:** Plugins\
**Created:** [August 31, 2018, 9:16am UTC](https://forum.bubble.io/t/progress-bar-for-completion/37002 "2018-08-31T09:16:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![t.w.gant](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/t.w.gant/32/29761_2.png) [@t.w.gant](https://forum.bubble.io/u/t.w.gant)\
**Post date:** [August 31, 2018, 9:16am UTC](https://forum.bubble.io/t/progress-bar-for-completion/37002/1 "2018-08-31T09:16:28Z")

</div>

Hello all!

I’m trying to set up a Progress Bar that increases after certain items have been clicked (viewed) by the user.

> **[Bubble Editor - forum-example](https://bubble.io/page?name=index&id=forum-example&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

Progress Bar has a custom state (number) and it’s dynamic value is set to be this state.

Each item (menu) has a yes/no custom state, set to be “yes” once it’s clicked.

The conditional formatting of Progress bar is set to +25 onto it’s percent once each menu’s state is “yes”.

Problem is…despite clicking several items and adding 25 to the progress bar multiple times, the progress bar never grows above 25%.

Anyone have any advice, or an easier way to make this happen?

Much appreciated

Tom

PS: I’d prefer not to use a database to do this: I don’t need to save this data and am trying to keep my database light

---

<div class="post-metadata">

**Author:** ![andrewgassen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrewgassen/32/44248_2.png) [@andrewgassen](https://forum.bubble.io/u/andrewgassen)\
**Post date:** [August 31, 2018, 10:30am UTC](https://forum.bubble.io/t/progress-bar-for-completion/37002/2 "2018-08-31T10:30:18Z")

</div>

It looks like your app editor is set to private, as I can’t access the link.

I’m not sure the conditional formatting works like that on a Progress Bar, but I’m not sure. You may need menu 2 to be +50, menu 3 to be +75, and menu 4 to be +100. Have you tried that?

---

<div class="post-metadata">

**Author:** ![t.w.gant](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/t.w.gant/32/29761_2.png) [@t.w.gant](https://forum.bubble.io/u/t.w.gant)\
**Post date:** [August 31, 2018, 11:13am UTC](https://forum.bubble.io/t/progress-bar-for-completion/37002/3 "2018-08-31T11:13:51Z")

</div>

Ooof, sorry - it’s public now so hopefully accessible - thanks for the reply.

I have, but because all 4 buttons are visible, users could click on the 4th one and boost their percent to 100 without clicking on the others.

The ‘+’ command is a little misleading as it seems to really be ‘set’.

---

<div class="post-metadata">

**Author:** ![luke2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/luke2/32/256674_2.png) [@luke2](https://forum.bubble.io/u/luke2)\
**Post date:** [August 31, 2018, 12:01pm UTC](https://forum.bubble.io/t/progress-bar-for-completion/37002/4 "2018-08-31T12:01:40Z")

</div>

Hey @t.w.gant

See the test page I’ve created:  
[https://forum-example.bubbleapps.io/version-test/index-clone?debug\_mode=true](https://forum-example.bubbleapps.io/version-test/index-clone?debug_mode=true)

I think there might be a slightly leaner version in the workflows if you use terminate this workflow or even have a master text element that holds the states numbers, but working as is…

![sdf](https://us1.discourse-cdn.com/bubble/original/3X/f/4/f40e2d838fda809efdb8f77f40078906bf6984ef.gif)

Essentially I’ve set each button to have a custom state as follows:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/0/40680491a2639d5d7eb508cbfda9570921cb343f.png)

The value can be set depending if the button has been clicked or not - so it can either add the value if the button is clicked or remove the value if the button was clicked e.g. clicked = yes, but then changed the state to clicked = no, therefore removing the value.

Then on the progress bar its just a simple calculation:  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/2/f2a4953be71abbd1bc75720d592f2bcd02808263.png)

(no conditions needed on the progress bar)

Hope this helps - any question lemme know.

Luke.

---

<div class="post-metadata">

**Author:** ![t.w.gant](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/t.w.gant/32/29761_2.png) [@t.w.gant](https://forum.bubble.io/u/t.w.gant)\
**Post date:** [August 31, 2018, 2:42pm UTC](https://forum.bubble.io/t/progress-bar-for-completion/37002/5 "2018-08-31T14:42:44Z")

</div>

Hey Luke,

That looks absolutely perfect! I still can’t work out how you add and remove or define the value - do you have the editor version for me to check out.

Thank you very much - I get how you’re doing it but just seem to be missing the final step - is it toggling the values?

---

<div class="post-metadata">

**Author:** ![luke2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/luke2/32/256674_2.png) [@luke2](https://forum.bubble.io/u/luke2)\
**Post date:** [August 31, 2018, 2:56pm UTC](https://forum.bubble.io/t/progress-bar-for-completion/37002/6 "2018-08-31T14:56:28Z")

</div>

Your welcome. Yes it can take a little thinking to wrap your head around the logic, especially with conditional states combined with the ‘Only when’ condition.

Sure - I’ve just modified the original Editor you first posted, its under a new page called ‘index-clone’  
[https://bubble.io/page?name=index&id=forum-example&tab=tabs-1](https://bubble.io/page?name=index&id=forum-example&tab=tabs-1)’

Take a look and see the workflows and custom states set on each button, hopefully it will make sense when its broken down. As mentioned there are a few other ways to do this operation, this might not be the best, but it works 😉

Each button as 2 custom states, 1 is to tell if the button has been clicked yes/no (this is used in the workflow conditions ‘Only when’ as its important we add or subtract the ‘25’ value) and the other state is a number where we can assigned when the button is clicked, either zero (blank) or a number value like 25 in this case. Anyhow take a look and if there is any logic your unsure of let me know.

---

<div class="post-metadata">

**Author:** ![t.w.gant](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/t.w.gant/32/29761_2.png) [@t.w.gant](https://forum.bubble.io/u/t.w.gant)\
**Post date:** [August 31, 2018, 3:17pm UTC](https://forum.bubble.io/t/progress-bar-for-completion/37002/7 "2018-08-31T15:17:28Z")

</div>

Ahhh you genius! Thank you so much!

It’s brilliantly simple and works a treat. Definitely a bit convoluted but I don’t think there’s any other way to do something like this. It’s a bit problem I’ve had when using progress bars and your solution offers a great little workaround. Thanks again 😄

---

<div class="post-metadata">

**Author:** ![luke2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/luke2/32/256674_2.png) [@luke2](https://forum.bubble.io/u/luke2)\
**Post date:** [August 31, 2018, 3:29pm UTC](https://forum.bubble.io/t/progress-bar-for-completion/37002/8 "2018-08-31T15:29:37Z")

</div>

Again your welcome, its always a nice feeling to get to the bottom of something, so glad I could assist.

Please mark this post as resolved so it could perhaps help someone else who may stumble upon this problem in the future.

Cheers

---

<div class="post-metadata">

**Author:** ![dharrison](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@dharrison](https://forum.bubble.io/u/dharrison)\
**Post date:** [January 12, 2021, 10:57pm UTC](https://forum.bubble.io/t/progress-bar-for-completion/37002/9 "2021-01-12T22:57:55Z")

</div>

Hi Luke,

Would you still happen to have this example available. I am having a similar problem. My app has 5 modules where users watch learning videos. I want to display the progress with the percentage of each module.

---

<div class="post-metadata">

**Author:** ![t.augustorocha](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@t.augustorocha](https://forum.bubble.io/u/t.augustorocha)\
**Post date:** [August 31, 2021, 5:52pm UTC](https://forum.bubble.io/t/progress-bar-for-completion/37002/10 "2021-08-31T17:52:53Z")

</div>

@luke2

can you please provide the example?

tks
