Hello,
I added a countdown timer to a list, linked it to a number input in my collection where I put 86400 (for 24 hours). When I refresh the preview page, the countdown reset to 24h and start again. Is it because it’s a preview and it’ll be persistent after publishing, or did I make something bad ?
afonso
October 13, 2024, 11:01pm
2
If you want the countdown to keep going even if you refresh, you have to set it in relation to a certain date.
If you want the countdown to start 24 hours after your user does something, you need to:
add to that collection a date+time property called something like “24h wait period”.
Whenever the user does the action that should start that 24h countdown, you need to update that property to “Curtent Time + 1” (1 meaning 1 day)
set the countdown timer from ([24h wait period - Current Time] x 24 x 60 x 60), so that it calculates the amount of seconds that is.
Hope it helps
afonso:
[
It works ! Thank you so much ! I was searching for it for weeks !
1 Like
afonso
October 14, 2024, 9:56am
5
Glad it was helpful. If you could kindly mark it as a solution, that’d be great. Cheers
system
Closed
October 24, 2024, 9:56am
6
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.