
Announcements
I would like to use the timer input to update another field. How can I use this to start and stop and input the total time into another field to be saved? It is being used to track how long a task takes to complete.
Hi @send2mark,
Do you want to calculate the time duration between the time you start the timer and the time you end the timer?
I'm just curious as to why we think it's necessary to use a timer here?
Could we not just store the time that the user click the start button into a variable (eg on the OnSelect property of the start button)? Then on the Submit button, we can work out the duration by calculating the difference between the current time and the initial time.
Anyway, here is a trick if you insist on a Timer to achieve this.
1). Set the Duration as long as you want to avoid its resetting.
2). Set the OnTimeStart property as a variable to record the start time:
Set(StartTime,Now())
3). Set the OnSelect property as another variable to record the end time you click the Timer to end itself:
Set(EndTime,Now())​
4). Add a label to display the time difference between start time and end time:
DateDiff(StartTime,EndTime,Seconds)