Copy link to clipboard
Copied
Hi Guys
I have a pdf document in which I want to allow a user to select an image. Currently the user is allowed to select an image into an Image field. I want to know if it would be possible to display the time the image was inserted, in a text box below the image. Any suggestions would be appreciated.
Copy link to clipboard
Copied
Yes, modify the code on the mouse up action of the image field.
Add this line to the bottom of the script
this.getField("Image Date").value = util.printd("mm/dd/yyyy", new Date());
Copy link to clipboard
Copied
Yes, modify the code on the mouse up action of the image field.
Add this line to the bottom of the script
this.getField("Image Date").value = util.printd("mm/dd/yyyy", new Date());
Copy link to clipboard
Copied
If you want the full time use this:
util.printd("mm/dd/yyyy HH:MM", new Date());
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more