Skip to main content
katherinec83104394
Participant
December 4, 2021
Question

Text Field not updating for "Printed On" date with current date

  • December 4, 2021
  • 2 replies
  • 1814 views

Using Acrobat DC.  Have searched community and tried different solutions to no avail.  I have medical user instructions with an embedded text field for printing the current date when the file is printed.  I had previously validated the process for setting up the file and the java script but now when printing the document, the date that is printed is the date the file was last saved.  When printing the file the next day the old date appears.  I tried testing by changing my computer system date backward/forward and the date does not change.  

 

I've attached the procedure that was previously used with no issues.  The file has the text field inserted following the procedure. I also added files showing different file save dates but the 'printed on' date did not change.

 

Would appreciate any assistance as I urgently need to correct problem prior to audit Monday!

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
December 4, 2021

These instructions are not good. The code needs to be placed under the Document Will Print event.

katherinec83104394
Participant
December 5, 2021

Thank you for your reply.  I was finally able to figure out by following your hint and researching the adobe site.  It would be very helpful to individuals who are not experts at embedding javascripts to provide a more specific instructions.  Regards.

Eric Dumas
Community Expert
Community Expert
December 4, 2021

Hi,

Did you try to use a 'Today' value for a date field?

This is a bit old but should stil work (Archives) Adobe Acrobat 9 Pro: PDF Forms: Inserting an Automatic Date Field | UW-Eau Claire (uwec.edu)

katherinec83104394
Participant
December 4, 2021

Than you for your reply.  Yes, I saw that article and I have tried but its not changing my results.

 

I have reviewed several revisions of documents with this text field that used to work properly to print the current date. Now the date printed is the date the file was last saved and not the current date.  There has been no modification to the file set up or script.