Skip to main content
Participating Frequently
December 25, 2024
Question

Auto fill dates and days in pdf form

  • December 25, 2024
  • 1 reply
  • 495 views

Hi,

I found in the community page on how to insert auto date in the pdf form.

this.getField("Today").value = util.printd("dd-mm-yyyy", new Date());

 

But I want to auto populate both date and day (eg 25 Dec 2024, Wednesday) etc..

I am not sure on the JS or how to write the code.

 

Appreciate any help.

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
December 25, 2024

Use this format: "dd mmm yyyy dddd"

Participating Frequently
December 25, 2024

Thank you, pardon my ignorant, where do I put the script ? Can provide the full script. Thanks

PDF Automation Station
Community Expert
Community Expert
December 25, 2024

What do you want the trigger to be?  A button click?  When the PDF opens?  Something else?