Copy link to clipboard
Copied
We have been auto populating dates on pdfs for a little over a year.
In the last week these dates have stopped populating todays date, now they just populate Oct 25, 2017.
Here is the calculation we were using.
this.addScript("init", "this.getField(\"general_document_date_today\").value = new Date();");
We need help asap.
Thanks
Run that code, ONCE, from the console window in Acrobat, and then it should work.
Copy link to clipboard
Copied
This is not a good way of doing it. Why are you using addScript? You only need to run that code once, and then it will work whenever the file is opened. The addScript method is not going to work in Reader, only in Acrobat.
Copy link to clipboard
Copied
What is the best way to do this?
We are trying to make a form that can be delivered to clients, and when the form is created it will place todays date at the top.
Thank you for your help
Copy link to clipboard
Copied
Run that code, ONCE, from the console window in Acrobat, and then it should work.