Copy link to clipboard
Copied
Hello,
I have a work form where a field for the Date will display when the form is sent to the printer.
I wanted this same Date field so I copied the field and pasted into my new form, but it doens't print.
Looking, it wasn't done with any javascript. I am not sure how it grabs the date when being printed.
I appreciate any insight into how this might work.
Thanks,
Copy link to clipboard
Copied
Hi,
Look under Document Actions in the old file and you should see a script entered under Will Print. You will need to add that to your new file too. You can also set the date field to Print only in your new form if you want it to only show when printed.
Hope this helps,
Dimitri
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Also here is the script I found
var f = this.getField("Date");
f.value = util.printd("mm/dd/yyyy", new Date());
var f = this.getField("Time");
f.value = util.printd("h:MM tt", new Date());
var f = this.getField("FormID");
f.value = new Date().getTime() ;
Copy link to clipboard
Copied
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more