Livecycle Form: Display current time (when file is opened) and make it static to show time which was at the time of opening of file.

rakeshk21205956

05-10-2019

How to display the time when the file was open and keep that time only, I have used the inbuilt Date & Time Field and use RunTime Property, now what happens is ..when document is opened it shows the current date and time.. but it time keeps on running. I want to make it static once the file is opened it should stay same till the file is closed and should remain same if it is opened next time also.

For ex- if i open the file on date: 01/01/2019  time : 15:00, and i keep it open for say 2 hours, still it should show date: 01/01/2019  time : 15:00, and after closing the file when i open it on say 3 days later it should still show date: 01/01/2019  time : 15:00,.

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

radzmar

MVP

06-10-2019

You need to check, if the field is already filled or not.

// JavaScript

if (this.isNull) {

  // Put your existing script here

}

; FormCalc

if ($.isNull eq 1) then

  ; Put your existing script here

endif