# Display current user count for all users only when switch is toggled on or off

**URL:** <https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533>\
**Category:** Get Help\
**Created:** [December 15, 2022, 2:16am UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533 "2022-12-15T02:16:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ej2023](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ej2023/32/25237_2.png) [@ej2023](https://forum.adalo.com/u/ej2023)\
**Post date:** [December 15, 2022, 2:16am UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/1 "2022-12-15T02:16:17Z")

</div>

I am trying to display a current user count tha all the user can see ONLY when a switch is toggled on

For example if user 1 logs in, he would see an active count of anyone else that has already toggled the switch to the on position. And if the user then toggles the switch to on, it adds to the count, if he toggles the switch to off, the count would go down by 1.

every user would see in real time the user count going up or down based on the switch going on and off per user.

Is there anyone that can point me in the right direction… I have it to the point where i can get the count to increase or decrease by switch off and on, but I cant get every user to see the same count, currently each user only sees their count, go up by 1 if they switch to on and back to 0 if it switch to off.

Thanks in advance for any help on this… im completely stuck and out of my element on how to get this to work

---

<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:** [December 15, 2022, 4:55am UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/2 "2022-12-15T04:55:24Z")

</div>

Hi @ej2023 ,

You will need app setting that can track number of login.

Check here,

> [@Tutorial App Setting, Still Online and Forced Logout](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542):
>
> Hi All, Here is cloneable app. App Setting collection is 1-record only and used to contain global variables, we can access it using list disguised as button. (login and signup button) To make list of a button, by clicking vertical 3 dots in left panel. Still Online is toggle (true/false) property in users collection, is used to make visible green ellipse at user’s icon (at top right corner). Along with last online, this could be useful when doing bulk update to check how much time has elap…

and here,

> [@App Settings - Last Order Number to Total Number of Login](https://forum.adalo.com/t/app-settings-last-order-number-to-total-number-of-login/27158):
>
> PSABH Series about app wide variables that can be used to save and track various information, can be accessed throughout all linked screens and provide synchronize information to all users. For those who are interested to get more detail and further inspection inside the app, can join the waitlist on thread that is on my profile, but those who cannot wait and urgently need this can private message me, there is another offer that can win both parties. T…

---

<div class="post-metadata">

**Author:** ![ej2023](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ej2023/32/25237_2.png) [@ej2023](https://forum.adalo.com/u/ej2023)\
**Post date:** [December 15, 2022, 10:27am UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/3 "2022-12-15T10:27:06Z")

</div>

@Yongki thanks for the quick response. I don’t see a clone button for the apps you mention that is cloneable. Is there something I need to turn on in Adalo to see this?

Thanks again

---

<div class="post-metadata">

**Author:** ![charleshope](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/charleshope/32/25088_2.png) [@charleshope](https://forum.adalo.com/u/charleshope)\
**Post date:** [December 15, 2022, 10:46am UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/4 "2022-12-15T10:46:53Z")

</div>

Have you tried having a propery in a collection that every user can access?

So when they switch the toggle on/off, you update the count of that property.

Since the property is not directly linked to one specific user, you display the count of that property and users should see the total count, as it goes up and down.

---

<div class="post-metadata">

**Author:** ![ej2023](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ej2023/32/25237_2.png) [@ej2023](https://forum.adalo.com/u/ej2023)\
**Post date:** [December 15, 2022, 11:01am UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/5 "2022-12-15T11:01:20Z")

</div>

@charleshope - thank you for your response. I am such a rookie when it comes to any of this and a first time adalo user… been playing with adalo for 1 week now… can you expand on how I would start that… i think I can get the first sentence you said sorted out.

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [December 15, 2022, 4:35pm UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/6 "2022-12-15T16:35:33Z")

</div>

👀

> **[Count with toggle.mp4](https://drive.google.com/file/d/1KZqmCSnqhlfGAv5ZxGrycy7MMeCLDLyf/view?usp=share_link)**
>
> Google Drive file.

---

<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:** [December 15, 2022, 8:12pm UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/7 "2022-12-15T20:12:07Z")

</div>

Yes, clone button was turned off, now you can check again.

> [@Tutorial App Setting, Still Online and Forced Logout](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542):
>
> Hi All, Here is cloneable app. App Setting collection is 1-record only and used to contain global variables, we can access it using list disguised as button. (login and signup button) To make list of a button, by clicking vertical 3 dots in left panel. Still Online is toggle (true/false) property in users collection, is used to make visible green ellipse at user’s icon (at top right corner). Along with last online, this could be useful when doing bulk update to check how much time has elap…

---

<div class="post-metadata">

**Author:** ![ej2023](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ej2023/32/25237_2.png) [@ej2023](https://forum.adalo.com/u/ej2023)\
**Post date:** [December 15, 2022, 10:12pm UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/8 "2022-12-15T22:12:17Z")

</div>

@Dilon thank you for this… i will review and step through what I can.

---

<div class="post-metadata">

**Author:** ![ej2023](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ej2023/32/25237_2.png) [@ej2023](https://forum.adalo.com/u/ej2023)\
**Post date:** [December 15, 2022, 10:13pm UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/9 "2022-12-15T22:13:27Z")

</div>

perfect, I see the button now… thank you for this… I will clone this and learn from this what I can and go from there… thanks again

---

<div class="post-metadata">

**Author:** ![ej2023](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ej2023/32/25237_2.png) [@ej2023](https://forum.adalo.com/u/ej2023)\
**Post date:** [December 16, 2022, 11:08am UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/10 "2022-12-16T11:08:06Z")

</div>

@Dilon I followed your video and this is exactly what I was looing for… its working for me perfectly! Thank you so much.

I now have the real time count based on the checkbox being checkdd on or off.

My next question is… because this is a meditation app… people will be idle. I need to auto toggle that box to off after 20 min. Can you explain to me how I would do this?

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [December 17, 2022, 1:13pm UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/11 "2022-12-17T13:13:05Z")

</div>

> [@ej2023](#):
>
> @Dilon I followed your video and this is exactly what I was looing for… its working for me perfectly! Thank you so much.

Awesome and Your welcome!

> [@ej2023](#):
>
> My next question is… because this is a meditation app… people will be idle. I need to auto toggle that box to off after 20 min. Can you explain to me how I would do this?

@ej2023, do you need to show a timer or don’t show and just off after 20 mins?

---

<div class="post-metadata">

**Author:** ![ej2023](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ej2023/32/25237_2.png) [@ej2023](https://forum.adalo.com/u/ej2023)\
**Post date:** [December 17, 2022, 2:03pm UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/12 "2022-12-17T14:03:35Z")

</div>

just off after 20 min

---

<div class="post-metadata">

**Author:** ![ej2023](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ej2023/32/25237_2.png) [@ej2023](https://forum.adalo.com/u/ej2023)\
**Post date:** [December 17, 2022, 2:11pm UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/13 "2022-12-17T14:11:23Z")

</div>

@Dilon another thing i notice… is that the count doesnt scroll with the screen… so that when I scroll the count overlaps the content thats scrolling… if that makes sense. I have tried to fix the text box and list to the top, but that doesnt seem to attach the count to the screen, it still floats on top of the content… any ideas how I can fix this… im sure im just missing a setting somewhere…

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [December 17, 2022, 8:23pm UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/14 "2022-12-17T20:23:15Z")

</div>

Got it!

> **[Off after countdown stops.mp4](https://drive.google.com/file/d/1BvepZtfpK7sW6EPULZvIT4ltQaeWEUOv/view?usp=share_link)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [December 17, 2022, 8:24pm UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/15 "2022-12-17T20:24:06Z")

</div>

@ej2023, could you show this behavior from a video?

---

<div class="post-metadata">

**Author:** ![ej2023](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ej2023/32/25237_2.png) [@ej2023](https://forum.adalo.com/u/ej2023)\
**Post date:** [December 17, 2022, 8:35pm UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/16 "2022-12-17T20:35:19Z")

</div>

yes, ill drop a screen recording here

---

<div class="post-metadata">

**Author:** ![ej2023](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ej2023/32/25237_2.png) [@ej2023](https://forum.adalo.com/u/ej2023)\
**Post date:** [December 17, 2022, 8:42pm UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/17 "2022-12-17T20:42:48Z")

</div>

@Dilon here it is

> **[count overlapping content.mp4](https://drive.google.com/file/d/1iZBfNHbzhUzMa0NhfWGifac4asyCRoUY/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![ej2023](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ej2023/32/25237_2.png) [@ej2023](https://forum.adalo.com/u/ej2023)\
**Post date:** [December 17, 2022, 8:44pm UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/18 "2022-12-17T20:44:57Z")

</div>

whoa, thank you… I will step through this and tell you my results! wow, really, really… thank you

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [December 18, 2022, 8:30am UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/19 "2022-12-18T08:30:48Z")

</div>

Thanks for the video @ej2023!

Hmm… I guess I know what maybe the issue. Is it possible to give access for your app to check this and fix this and share what happened, here? ( You can add this email by clicking the settings icon on left side of the editor and app access section and add the email )

---

<div class="post-metadata">

**Author:** ![ej2023](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ej2023/32/25237_2.png) [@ej2023](https://forum.adalo.com/u/ej2023)\
**Post date:** [December 18, 2022, 10:49am UTC](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533/20 "2022-12-18T10:49:43Z")

</div>

I have added you to the app, thank you Dilon!

[Next page](https://forum.adalo.com/t/display-current-user-count-for-all-users-only-when-switch-is-toggled-on-or-off/34533.md?page=2)
