# Auto toggle off with Google Script?

**URL:** <https://community.glideapps.com/t/auto-toggle-off-with-google-script/30768>\
**Category:** Ask for Help\
**Created:** [August 21, 2021, 9:14pm UTC](https://community.glideapps.com/t/auto-toggle-off-with-google-script/30768 "2021-08-21T21:14:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [August 21, 2021, 10:41pm UTC](https://community.glideapps.com/t/auto-toggle-off-with-google-script/30768/2 "2021-08-21T22:41:08Z")

</div>

I think a better alternative would be to use a button or some other component that allows you to perform an action. Or maybe an inline list with an action. And then have that action set a column value with a timestamp. Then based on that timestamp, you could hide the button or list item with a condition that checks it the timestamp is not within today or display a different image or emoji. At midnight it will automatically reset itself without the need for a script because it will be the next day from the day the timestamp was set. It’s not a switch or checkbox component, but you could use IF conditions and emoji’s or images to give the affect.

This isn’t an exact example, but I think it might give you an idea of what I’m talking about. I’m not opposed to scripts, but I think it’s easier and cleaner if you can have everything built into glide itself.

> [@Reset Multiple Rows At Once](https://community.glideapps.com/t/reset-multiple-rows-at-once/22211):
>
> There have been several requests for people to find a way to clear a value in multiple rows. I was thinking about that and came up with a quick example of a way to handle that. Instead of trying to clear a value in an entire column, I realized we could just change one value on a parent column, load it as a single value in our sheet and then compare that parent value to a column that we set or unset for each row. It’s not about clearing an entire column, it’s about making a value in each row n…

---

_[View the full topic](https://community.glideapps.com/t/auto-toggle-off-with-google-script/30768)._
