Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to keep time from constantly updating

Avatar

Avatar
Validate 1
Level 1
tracik18452726
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
tracik18452726
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
tracik18452726
Level 1

08-04-2021

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

165 likes

Total Posts

369 posts

Correct Reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
View profile

Avatar
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

165 likes

Total Posts

369 posts

Correct Reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
View profile
Kosta_Prokopiu1
Employee

09-04-2021

See https://experienceleaguecommunities.adobe.com/t5/adobe-livecycle-questions/need-a-date-time-field-to...

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)

Kosta_Prokopiu1_0-1617954636589.png

 

Answers (0)