# Countdown Timer Help!

**URL:** https://forum.adalo.com/t/countdown-timer-help/31304
**Category:** Get Help
**Created:** [August 29, 2022, 2:36am UTC](https://forum.adalo.com/t/countdown-timer-help/31304 "2022-08-29T02:36:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![TrZd](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@TrZd](https://forum.adalo.com/u/TrZd)
#### Post date: [August 29, 2022, 2:36am UTC](https://forum.adalo.com/t/countdown-timer-help/31304/1 "2022-08-29T02:36:28Z")

</div>

Hello smart people!

I am creating a workout app that has a countdown timer.

- When the timer hits 0 seconds, the action is to go to the second screen
- There is also a button on the same page with an action to go to the second screen

Question 1:

- When I press the button to go to the next screen, the countdown timer still runs in the background and reloads the page once it hits 0 seconds, even though I am already on the second screen. Is there an easy way to cancel the countdown timer’s action if the button’s action is executed?

Question 2:

- When I am on the second screen and press back to go to the first screen, the countdown timer is set at 0 seconds. Is there an easy way to have the timer reset to the default amount?

Thanks in advance!

---

<div class="post-metadata">

### Author: ![EnriqueGomez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/enriquegomez/32/18235_2.png) [@EnriqueGomez](https://forum.adalo.com/u/EnriqueGomez)
#### Post date: [August 29, 2022, 4:08am UTC](https://forum.adalo.com/t/countdown-timer-help/31304/2 "2022-08-29T04:08:50Z")

</div>

> [@TrZd](#):
>
> When I press the button to go to the next screen, the countdown timer still runs in the background and reloads the page once it hits 0 seconds, even though I am already on the second screen. Is there an easy way to cancel the countdown timer’s action if the button’s action is executed?

Actions will not execute if user goes to a different screen using the button, and countdown timer does not run in the backgroud.

> [@TrZd](#):
>
> When I am on the second screen and press back to go to the first screen, the countdown timer is set at 0 seconds. Is there an easy way to have the timer reset to the default amount?

Try using a direct link to first screen instead of a link to back.

---

<div class="post-metadata">

### Author: ![TrZd](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@TrZd](https://forum.adalo.com/u/TrZd)
#### Post date: [September 3, 2022, 5:28am UTC](https://forum.adalo.com/t/countdown-timer-help/31304/3 "2022-09-03T05:28:45Z")

</div>

Thanks @EnriqueGomez for your response.

> [@EnriqueGomez](#):
>
> Actions will not execute if user goes to a different screen using the button, and countdown timer does not run in the backgroud.

When I set a countdown timer (in a list) on the first screen for 10 seconds, but press the “next” button (also in a list) with 2 seconds left on the timer, it will go to the next screen, but then the page will reload again 2 seconds later as if the timer still carries over.

Has anyone experienced this too and know a workaround?

> [@EnriqueGomez](#):
>
> Try using a direct link to first screen instead of a link to back

This works for the timer, but then I get the missing data links for linking back to a screen.

Does anyone know a workaround solution for this as well?

Thanks in advance!

---

<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: [September 3, 2022, 6:26pm UTC](https://forum.adalo.com/t/countdown-timer-help/31304/4 "2022-09-03T18:26:06Z")

</div>

Hi @TrZd,

Check this video made by @Victor! : [Adalo Mini-App series: CountDown Timer Pause and Continue - YouTube](https://youtu.be/VEXxzOHEsQQ)

Added it here : [Workouts](https://previewer.adalo.com/73d5c7f6-39bf-4f37-bb9d-0e938f147b07)

Thank you

---

<div class="post-metadata">

### Author: ![EnriqueGomez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/enriquegomez/32/18235_2.png) [@EnriqueGomez](https://forum.adalo.com/u/EnriqueGomez)
#### Post date: [September 5, 2022, 2:25pm UTC](https://forum.adalo.com/t/countdown-timer-help/31304/5 "2022-09-05T14:25:06Z")

</div>

> [@TrZd](#):
>
> the page will reload again 2 seconds later as if the timer still carries over.

You can set a conditional action in the countdown timer, so if user hit the button, countdown timer action will not execute.

> [@TrZd](#):
>
> I get the missing data links for linking back to a screen.

Try making the countdown timer a list, so it must reload every time you visit the screen but I am not sure if it would work.

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)
#### Post date: [September 15, 2022, 2:25pm UTC](https://forum.adalo.com/t/countdown-timer-help/31304/6 "2022-09-15T14:25:28Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
