PCHomepage
Programmer
On an Acrobat form, I have a date field that I would like to have show the current date before the user begins filling the form. Maybe it can simply look to see if they've entered their name and that would be enough to make in lock into whatever the current date is.
For testing purposes I have it set to use the time rather than the date and date field is called "Today" while the name field is "01":
For testing purposes I have it set to use the time rather than the date and date field is called "Today" while the name field is "01":
Code:
var f = this.getField("Today");
if this.getField("01"){
f.value = util.printd("HH:MM:ss", new Date());
}