# Timestamp when switch or choice is triggered

**URL:** <https://community.glideapps.com/t/timestamp-when-switch-or-choice-is-triggered/69333>\
**Category:** Feature Requests\
**Created:** [January 7, 2024, 5:22pm UTC](https://community.glideapps.com/t/timestamp-when-switch-or-choice-is-triggered/69333 "2024-01-07T17:22:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brenten\_Taylor](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/brenten_taylor/32/68533_2.png) [@Brenten\_Taylor](https://community.glideapps.com/u/Brenten_Taylor)\
**Post date:** [January 7, 2024, 5:22pm UTC](https://community.glideapps.com/t/timestamp-when-switch-or-choice-is-triggered/69333/1 "2024-01-07T17:22:25Z")

</div>

I know I can add a timestamp when submitting a form or anytime an action is allowed. But actions are not allowed on switches or choices.

I need to be able to create a timestamp when a project or task value changes to ‘closed’ in my project management app.

---

<div class="post-metadata">

**Author:** ![tuzin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tuzin/32/86077_2.png) [@tuzin](https://community.glideapps.com/u/tuzin)\
**Post date:** [January 8, 2024, 5:47am UTC](https://community.glideapps.com/t/timestamp-when-switch-or-choice-is-triggered/69333/2 "2024-01-08T05:47:30Z")

</div>

You can always use an action that will both change the task value and write a timestamp

---

<div class="post-metadata">

**Author:** ![Brenten\_Taylor](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/brenten_taylor/32/68533_2.png) [@Brenten\_Taylor](https://community.glideapps.com/u/Brenten_Taylor)\
**Post date:** [January 9, 2024, 7:29am UTC](https://community.glideapps.com/t/timestamp-when-switch-or-choice-is-triggered/69333/3 "2024-01-09T07:29:46Z")

</div>

I’m not sure that fits the use case.

When a user finishes a task they move the task to “completed”, either with a switch, a checkbox or on the Kanban board.

I’m not aware of any way to trigger a timestamp Action when the value changes to “completed”.

Am I missing something?

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abdo/32/36540_2.png) [@abdo](https://community.glideapps.com/u/abdo)\
**Post date:** [January 9, 2024, 7:42am UTC](https://community.glideapps.com/t/timestamp-when-switch-or-choice-is-triggered/69333/4 "2024-01-09T07:42:18Z")

</div>

I guess currently you want to add a button… that performs the action instead of the switch or choice.

However as you mentioned entire actions on switch and choice components would really really be helpful. Actions on big numbers as well.

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [January 9, 2024, 7:46am UTC](https://community.glideapps.com/t/timestamp-when-switch-or-choice-is-triggered/69333/5 "2024-01-09T07:46:46Z")

</div>

You can create an HTML switch. Copy the URL of the switch with the on and off position… use it in the rich text component and add action… as for now, there is no action for the native switch or choice… unless you are using Google Sheets as your database… then you can add onChange trigger, to run a simple script to add timestamp to the active row.

---

<div class="post-metadata">

**Author:** ![Brenten\_Taylor](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/brenten_taylor/32/68533_2.png) [@Brenten\_Taylor](https://community.glideapps.com/u/Brenten_Taylor)\
**Post date:** [January 9, 2024, 7:54am UTC](https://community.glideapps.com/t/timestamp-when-switch-or-choice-is-triggered/69333/6 "2024-01-09T07:54:53Z")

</div>

Please upvote the feature request

---

<div class="post-metadata">

**Author:** ![Brenten\_Taylor](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/brenten_taylor/32/68533_2.png) [@Brenten\_Taylor](https://community.glideapps.com/u/Brenten_Taylor)\
**Post date:** [January 9, 2024, 7:59am UTC](https://community.glideapps.com/t/timestamp-when-switch-or-choice-is-triggered/69333/7 "2024-01-09T07:59:29Z")

</div>

Glide databases could really use the onChange trigger

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [January 9, 2024, 8:00am UTC](https://community.glideapps.com/t/timestamp-when-switch-or-choice-is-triggered/69333/8 "2024-01-09T08:00:19Z")

</div>

Yep… that’s why all my Apps are based on GS.
