on-internet
← Community

Today's Date in an Adobe Form

Stack Overflow ·

I'm using Acrobat X Pro and would like my form to open with today's date. I am having a hard time finding a script that works in Acrobat X. Appreciate any help. I found this response by Paque in July 2010: Remove your script and replace it with the following document javascript: var f = this.getField("wells_datefield"); if (!f.value) f.value = util.printd ("m/d/yyyy", new Date()); Save your form and open it, and the date should pop right in there. When making the document javascript, remember to not put it inside a function. One way of doing that is the following. In the Acrobat menu: Advanced

Comments

Sign in or sign up to comment and upvote.

No comments yet.