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.
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 timerEnd
β ADD_DURATION(NOW(), 10, "seconds")
Formula to set secondsLeft
β DATETIME_DIFFERENCE(pageVars.timerEnd, NOW(), "seconds")
Hope this helps you forward!
Thank youu very much!!!