These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Date/time button. Can the time update by the second when form is open?

Abbica
Registered: Feb 4 2009
Posts: 38

Hi, I just need the time to appear by the second, so when a client is filling in the form, the time appears continuously updated as he is typing, it doesn't freeze on the time once you open the document, time keeps moving along. Can liveCycle designer do this or Acrobat pro 8?

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

create a date/time field, and add a script to it to show the time, the form was opened first.
The script will only calculate a new time, as long the field has no value, this means it will be calculated exactly once.

Form1.#subform[0].MyTime[0]::calculate - (FormCalc, client)if ($.rawValue == null) thennum2time(time())else$.rawValueendif

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Thom Parker has a series of tutorials about date and time calculations. The 3rd part explains how to use the internal timer of Acrobat to run a script at a fixed interval. This may also work in LiveCycle Designer using the JavaScript language.

George Kaiser