Skip to main content
Lorie Zweifel
Inspiring
January 8, 2022
Question

Date and Time printed on PDF Forms

  • January 8, 2022
  • 1 reply
  • 1485 views

Hi everyone,

I have created a form for a customer who will then print the form and email it to their customer.  Is it possible to have the date and time of printing on the form when printed?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
January 8, 2022

Yes. Create a (read-only, only visible on print) text field called "PrintDate" and then go to Tools - JavaScript - Set Document Actions and under the Will Print event add the following code:

 

this.getField("PrintDate").value = "Printed on: " + util.printd("mm/dd/yyyy HH:MM", new Date());

 

You can play around with the fixed text and/or date format, of course.