# Timer functionality

**URL:** <https://community.glideapps.com/t/timer-functionality/4785>\
**Category:** Ask for Help\
**Created:** [February 20, 2020, 1:49am UTC](https://community.glideapps.com/t/timer-functionality/4785 "2020-02-20T01:49:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijay](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vijay/32/3259_2.png) [@vijay](https://community.glideapps.com/u/vijay)\
**Post date:** [February 20, 2020, 1:49am UTC](https://community.glideapps.com/t/timer-functionality/4785/1 "2020-02-20T01:49:46Z")

</div>

Has anybody implemented a timer functionality that shows a message for 60 seconds or till a cell in Google sheet turns True? After 60 seconds, another message will be shown. Is there a way to implement a visibility condition based on time?  
This is what I am looking for. A student submits a tutoring request. After 60 seconds, if no tutor accepts the request, a message saying "sorry "is shown.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/b/b7f2b99c534c757ecf4f35df4040bdaf2ff1fb7b.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/9/9cbe2ae0748a2ae0a6e663b137610bb022c11b7a.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/d/da82b1f25fee2a838dc9032b2471595a5a7ae7e1.png)  
This image will be shown for 60 seconds and if no tutor accepts the request, then another message is shown as below.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/2/2572d5d8035438a6b7760555a02b222f915a4068.png)

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [February 20, 2020, 2:09am UTC](https://community.glideapps.com/t/timer-functionality/4785/2 "2020-02-20T02:09:24Z")

</div>

You might be able to do something like this. First, you’ll have to update your spreadsheet settings so that it performs calculations every minute:

> ![Screen Shot 2020-02-19 at 9.02.01 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/e/eba0322e8630ed8a96e184113760b10643826dad.png)

Then, based on the time stamp of submission, have a column that calculates the timestamp + 60 seconds (but I would do longer to account for the lagginess of the sheet calculations)

Then, have a column that checks if the calculation from the previous step is greater than or equal to Now() and return true (reached time limit) or false. Your visibility can then determine that the sorry message appears if tutor = false AND calculation is true.

This I think could work.

---

<div class="post-metadata">

**Author:** ![vijay](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vijay/32/3259_2.png) [@vijay](https://community.glideapps.com/u/vijay)\
**Post date:** [February 20, 2020, 2:21am UTC](https://community.glideapps.com/t/timer-functionality/4785/3 "2020-02-20T02:21:59Z")

</div>

Thanks for the suggestion. I had tried this, by inserting a formula into the first cell of a column which calculates timestamp + 60 seconds using a google sheet function. Now, when I drag it to apply the formula to all the cells of the column, the next form data from the glideapp does not appear in the second row, but appears way below after 1000 rows. Is there a way to prevent this from happening?

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [February 20, 2020, 2:39am UTC](https://community.glideapps.com/t/timer-functionality/4785/4 "2020-02-20T02:39:57Z")

</div>

Yes. First get rid of all those copies. You don’t want to drag/copy down because new form data will skip them. Instead, the first row needs to contain an array formula that will _automatically apply the formula to all new rows_ (Array formulas are crucial and so easy to set up): [https://www.spreadsheetclass.com/using-arrayformula-to-apply-a-formula-to-an-entire-column-in-google-sheets/](https://www.spreadsheetclass.com/using-arrayformula-to-apply-a-formula-to-an-entire-column-in-google-sheets/)

---

<div class="post-metadata">

**Author:** ![vijay](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vijay/32/3259_2.png) [@vijay](https://community.glideapps.com/u/vijay)\
**Post date:** [February 20, 2020, 3:33am UTC](https://community.glideapps.com/t/timer-functionality/4785/5 "2020-02-20T03:33:36Z")

</div>

I tried ARRAYFORMULA, but it applies it to a blank cell and give a value, and the same problem appears of the next form data coming at the end of the rows applied.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/4/48fe4177dbb9672778e8c04044a9c49276a1ad8a.png)

---

<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:** [February 20, 2020, 3:46am UTC](https://community.glideapps.com/t/timer-functionality/4785/6 "2020-02-20T03:46:39Z")

</div>

You need to also put an IF statement in your arrayformula to only populate the row with a date if column E for example is not empty. Then you need to delete all empty rows because rows with arrayformulas are still filled rows and glide will only insert new rows at the end of the sheet.

`=ARRAYFORMULA(IF(LEN(E2:E)=0,"", insert your formula here))`

---

<div class="post-metadata">

**Author:** ![vijay](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vijay/32/3259_2.png) [@vijay](https://community.glideapps.com/u/vijay)\
**Post date:** [February 20, 2020, 3:41pm UTC](https://community.glideapps.com/t/timer-functionality/4785/7 "2020-02-20T15:41:57Z")

</div>

I have done exactly as mentioned. And the logic works excellently, thanks Jeff and Robert. And, I am able to see a Timeout variable change from FALSE to TRUE based on a time comparison formula in the google sheet. But, this change doesn’t affect the glide app. Is it because it is not an edit, and I have to go PRO in order for changes in google sheet based on google sheet functions to affect the glide app?

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [February 20, 2020, 3:43pm UTC](https://community.glideapps.com/t/timer-functionality/4785/8 "2020-02-20T15:43:23Z")

</div>

Did you change your sheet settings to refresh every minute (see my first reply)?

---

<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:** [February 20, 2020, 4:20pm UTC](https://community.glideapps.com/t/timer-functionality/4785/9 "2020-02-20T16:20:36Z")

</div>

That’s a really small time limit for a glide app. If you do go Pro, I think Glide will look for updates from the sheet every 3 to 5 minutes. When using the free version of Glide, sheet updates will only make it to the app shortly after you make an edit in the app and any time Google sends an update to Glide. From what I’ve seen, certain functions like now() will not trigger Google to send the update to Glide and require some sort of change in the app to get the sheet updates.

I’d consider some sort of script on a timed trigger to make a change in your sheet every minute, or go pro and consider changing to request time for tutor’s, from 2 minutes to maybe 5 or 10 minutes.

---

<div class="post-metadata">

**Author:** ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)\
**Post date:** [June 9, 2020, 8:06pm UTC](https://community.glideapps.com/t/timer-functionality/4785/10 "2020-06-09T20:06:19Z")

</div>

It will change every minute if the sheet is closed.
