Link in Zwischenablage kopieren
Kopiert
Can I make the date field autofill with todays Date with Acrobat DC?
Link in Zwischenablage kopieren
Kopiert
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.
Link in Zwischenablage kopieren
Kopiert
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...
Link in Zwischenablage kopieren
Kopiert
I'm thinking I may have posted in the wrong forum. I have a trial version of Acrobat DC on my desktop.
Link in Zwischenablage kopieren
Kopiert
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.
Link in Zwischenablage kopieren
Kopiert
Nothing auto-populates in my Today date field using that code. I still have to pick a date. What am I missing?
Link in Zwischenablage kopieren
Kopiert
Where does you use the script?
Link in Zwischenablage kopieren
Kopiert
I nthe Validate tab in Properties.
Link in Zwischenablage kopieren
Kopiert
Use the script at document level.
Link in Zwischenablage kopieren
Kopiert
Thank you. I was setting it to populate upon opening, but I wasn't closing and re-opening. My mistake. THANK YOU!!!
Link in Zwischenablage kopieren
Kopiert
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.
Link in Zwischenablage kopieren
Kopiert
Thank you! I was trying to figure out how to add JavaScript under the "Prepare" section in tools. Your help is appreciated
Link in Zwischenablage kopieren
Kopiert
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.
Weitere Inspirationen, Events und Ressourcen finden Sie in der neuen Adobe Community
Jetzt ansehen