Select to view content in your preferred language

Create a countdown using arcade expression upon opening dashboard?

122
0
05-21-2024 10:23 AM
RPGIS
by
Regular Contributor

Hi,

I am trying to figure out a way to set up a countdown that automatically refreshes after opening a dashboard? The code below works fine but it isn't synced with the layer refresh. I am curious if anyone knows a way to have the countdown refresh the same time the layer refreshes.

var setmin = 4-(Minute(Now())%5)
var setsec = Text(60-second(Now()))
if(count(setsec)==1){setsec='0'+setsec}
var timer = Text(setmin)+':'+Text(setsec)

 I know you can turn on the last updated option on any of the widgets, but I would like to have a larger indicator showing that.

0 Kudos
0 Replies