Copy link to clipboard
Copied
Can I make the date field autofill with todays Date with Acrobat DC?
Copy link to clipboard
Copied
I moved your question to the PDF Forms forum.
OK, here's how you do it: Search the tools for Document JavaScripts and open it. Create a new item. Let's call it "load".
Delete any pre-existing code in the window that opens, and paste this code instead into it:
this.getField("Today").value = util.printd("mm/dd/yyyy", new Date());
The code above assumes you have a field called "Today" that you want to populate with today's date. You can change that, as well as the date format, if you wish.
Copy link to clipboard
Copied
Yes, it's possible to do that with the desktop version of Acrobat. Is that what you have? Because you posted in the DC PDF Services forum...
Copy link to clipboard
Copied
I'm thinking I may have posted in the wrong forum. I have a trial version of Acrobat DC on my desktop.
Copy link to clipboard
Copied
I moved your question to the PDF Forms forum.
OK, here's how you do it: Search the tools for Document JavaScripts and open it. Create a new item. Let's call it "load".
Delete any pre-existing code in the window that opens, and paste this code instead into it:
this.getField("Today").value = util.printd("mm/dd/yyyy", new Date());
The code above assumes you have a field called "Today" that you want to populate with today's date. You can change that, as well as the date format, if you wish.
Copy link to clipboard
Copied
Nothing auto-populates in my Today date field using that code. I still have to pick a date. What am I missing?
Copy link to clipboard
Copied
Where does you use the script?
Copy link to clipboard
Copied
I nthe Validate tab in Properties.
Copy link to clipboard
Copied
Use the script at document level.
Copy link to clipboard
Copied
Thank you. I was setting it to populate upon opening, but I wasn't closing and re-opening. My mistake. THANK YOU!!!
Copy link to clipboard
Copied
Hi, I need assistance with an Adobe Acrobat template that opens with Acrobat DC. The form requires several signtures and a separtate date field dor each signer to be signed through Adobe Acrobat Sign. I need the form to be able to autofill the date field when each individual signs. Can you please assist.
Copy link to clipboard
Copied
Thank you! I was trying to figure out how to add JavaScript under the "Prepare" section in tools. Your help is appreciated
Copy link to clipboard
Copied
Hello,
I used the above script and it works great. Will this keep a static date if the the saved form is opened later? The date will be going on an employee application, so it needs to store the date the application was filled and saved, and should not change later.
Thanks for any help.