Copy link to clipboard
Copied
Hello
I found this script at community which date auto fill automatically as per date today.
But i should close pdf and open again .to change date.
If there are any script date today auto fill which pdf always open .
this.addScript("init","this.getField(\"Today\").value=new Date();");
Place this as 'Document Level' script (use tool 'Document JavaScript'):
this.getField("Today").value = new Date();
Copy link to clipboard
Copied
Place this as 'Document Level' script (use tool 'Document JavaScript'):
this.getField("Today").value = new Date();
Copy link to clipboard
Copied
Many thanks nesa
It is working
Copy link to clipboard
Copied
That script is meant to be run from the console or in an Action to automatically add a document level script that runs whenever the document is opened. When it is opened it will update the "Today" field with the current date.
Copy link to clipboard
Copied
Yes dear
When it is always opened it will update the "Today" field with the current date