Hello! I am trying to capture the time stamp of when the user opens the file ONLY. I have the field set to capture the date, but I need to keep that time from continuously updating. Any help is greatly appreciated. Thank you in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
and generally in the initialization event of your time field (and your date field too) put some logic that prevents update if the field is filled. The initial state of a field NOT being prefilled by data is null.
Something like
if ($ == null) then
$.rawValue = Num2Time(Time(), "HH:MM:SS")
endif
Does the trick (Note: this is FormCalc and not Javascript as FomrCalc has better time/date support - but you could code in JS too, same princip)
and generally in the initialization event of your time field (and your date field too) put some logic that prevents update if the field is filled. The initial state of a field NOT being prefilled by data is null.
Something like
if ($ == null) then
$.rawValue = Num2Time(Time(), "HH:MM:SS")
endif
Does the trick (Note: this is FormCalc and not Javascript as FomrCalc has better time/date support - but you could code in JS too, same princip)
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies