How can I do time counter?

Hi! I want to do time counter that will decrease from 0:59 to 0:00. Could anyone help?

Hi, I just happened to implement this in an app with the following formula:

IF(FLOOR(pageVars.secondsLeft / 60) < 10, "0" + FLOOR(pageVars.secondsLeft / 60), FLOOR(pageVars.secondsLeft / 60)) + ":" + IF((pageVars.secondsLeft - FLOOR(pageVars.secondsLeft / 60) * 60) < 10, "0" + (pageVars.secondsLeft - FLOOR(pageVars.secondsLeft / 60) * 60), (pageVars.secondsLeft - FLOOR(pageVars.secondsLeft / 60) * 60))

Where pageVars.secondsLeft is how many seconds are left in the timer.

1 Like

Hello! Thank you!

Could you show it with more detail, with logic?

Hi, you can do it for example like this:

Page variables:

Logic:

Formula to set timerEndADD_DURATION(NOW(), 10, "seconds")

Formula to set secondsLeftDATETIME_DIFFERENCE(pageVars.timerEnd, NOW(), "seconds")

Hope this helps you forward! :slight_smile:

1 Like

Thank youu very much!!! :smiling_face_with_three_hearts: :smiling_face_with_three_hearts:

1 Like