# On Duty/Off Duty Functionality

**URL:** <https://community.glideapps.com/t/on-duty-off-duty-functionality/40056>\
**Category:** Ask for Help\
**Created:** [March 24, 2022, 9:32pm UTC](https://community.glideapps.com/t/on-duty-off-duty-functionality/40056 "2022-03-24T21:32:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![FRCDalton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/frcdalton/32/40788_2.png) [@FRCDalton](https://community.glideapps.com/u/FRCDalton)\
**Post date:** [March 24, 2022, 9:32pm UTC](https://community.glideapps.com/t/on-duty-off-duty-functionality/40056/1 "2022-03-24T21:32:17Z")

</div>

Hello everyone!

My team and I are attempting to create a board that logs when our staff goes on duty and off duty. Although we’re having trouble with getting it to keep to just on-duty and off-duty statues when using text or even booleans. When setting it up at first, it shows on duty, we click it again, and then it shows off-duty. After that, nothing else is registered. What are we doing wrong and has someone attempted to do something like this before?

Any help would be much appreciated! 🙂

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [March 24, 2022, 9:40pm UTC](https://community.glideapps.com/t/on-duty-off-duty-functionality/40056/2 "2022-03-24T21:40:25Z")

</div>

Hola,

Do you have any screenshot or video to watch your issue?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 24, 2022, 9:44pm UTC](https://community.glideapps.com/t/on-duty-off-duty-functionality/40056/3 "2022-03-24T21:44:26Z")

</div>

My first guess, if using a boolean, is that you aren’t accounting for the fact that it can be in one of three states (blank, false, true). It’s best to never explicitly check for false. Only check for true or not true.

---

<div class="post-metadata">

**Author:** ![FRCDalton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/frcdalton/32/40788_2.png) [@FRCDalton](https://community.glideapps.com/u/FRCDalton)\
**Post date:** [March 24, 2022, 11:46pm UTC](https://community.glideapps.com/t/on-duty-off-duty-functionality/40056/4 "2022-03-24T23:46:21Z")

</div>

Happy to provide some screenshots of my setup currently - still figuring things out.

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

This is currently what I have set within the spreadsheet although it isn’t functioning on the front-end though even though I have an action connected to it.

---

<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:** [March 25, 2022, 1:28am UTC](https://community.glideapps.com/t/on-duty-off-duty-functionality/40056/5 "2022-03-25T01:28:37Z")

</div>

Can you provide screenshots on the front end as well?

And what is not ‘fucntioning’ in your case? The if then else looks like it’s set up correctly.

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [March 25, 2022, 12:02pm UTC](https://community.glideapps.com/t/on-duty-off-duty-functionality/40056/6 "2022-03-25T12:02:38Z")

</div>

> [@FRCDalton](#):
>
> When setting it up at first, it shows on duty, we click it again, and then it shows off-duty. After that, nothing else is registered.

Thanks!

you are using a spreadsheet (GS) to save your duty status and your _Status Types column_ depends on this value from GS, right?

Maybe you are having a synchronization problem when you change the status quickly. When Glide sends a value to GS, it waits 5-8 seconds for any update and if this is carried out several times at a short time you could have a _ping-pong effect_ and see wrong values.

Would you mind creating your logic and test it using a Glide Table instead? A GT is better than a GS in these cases.

Feliz día!
