Copy link to clipboard
Copied
My custom stamp isnt showing up with the current date and time when stamping a document. Im not sure if its the saved location where my stamp is saved or the JavaScript im using.
Copy link to clipboard
Copied
Hi @Dakota_reality6959,
Thanks for reaching out, and I understand how frustrating it can be when expected stamp behavior stops working.
From your description, it sounds like you’re using a dynamic stamp (like a date/time stamp), but it’s no longer displaying the correct date/time when applied. This usually points to one of the following issues:
Dynamic stamps rely on JavaScript to insert live data like the current date/time.
Go to Acrobat > Preferences > JavaScript
Make sure “Enable Acrobat JavaScript” is checked
The JavaScript logic inside the stamp PDF may be broken or overwritten.
Navigate to:
Windows: C:\Users\<username>\AppData\Roaming\Adobe\Acrobat\<version>\Stamps
Mac: ~/Library/Application Support/Adobe/Acrobat/<version>/Stamps
Try removing the affected stamp file (*.pdf) and re-adding a fresh copy.
You can also create a new dynamic stamp using Adobe’s Sample Dynamic Stamps from this official resource
Select the stamp.
Use Ctrl + J (Windows) or Cmd + J (Mac) to open the JavaScript Console
If the console is blank or shows an error, the stamp script may be missing.
If your stamp no longer auto-generates date/time, you can recreate it:
Create a new PDF file with a form field that inserts:
var f = this.getField("Today");
f.value = util.printd("mm/dd/yyyy hh:MM tt", new Date());
Save this as a custom stamp via:
Tools > Stamp > Custom Stamps > Create
Let us know:
What stamp name are you using (default vs custom)
If this worked previously and only recently stopped
Your Acrobat version (Help > About Adobe Acrobat)
Whether JavaScript is enabled
We’re happy to help troubleshoot further!
~Tariq
Copy link to clipboard
Copied
What is the script your are using?
Copy link to clipboard
Copied
var f = this.getField("Today");
f.value = util.printd("mm/dd/yyyy hh:MM tt", new Date());
Mainly this one but ive tried different iterations aswell
Copy link to clipboard
Copied
That should work if the script is a calculation script in a field other than Today. If it is in the Today field it should read:
event.value = util.printd("mm/dd/yyyy hh:MM tt", new Date());
Copy link to clipboard
Copied
Im not sure what it is. I think im going to just do a type in method rather than auto generated date and time. Thank you to both for helping.
Copy link to clipboard
Copied
Can you upload the file?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
That isn't a stamp file. It's missing the page template and a propper title.
Just a note. DO NOT EVER USE THE CREATE STAMP TOOLS BUILT INTO ACROBAT. THIS FEATURE DESTROYS DYAMIC STAMPS.
I hope that's clear.
Copy link to clipboard
Copied
This article covers the info you need to create a dynamic stamp.
https://acrobatusers.com/tutorials/dynamic_stamp_secrets/
Find more inspiration, events, and resources on the new Adobe Community
Explore Now