event.value = "";
if (event) promptUser();
var d = app.response();
event.value = util.printd("mmm dd yyyy", new Date(Date.parse(d))).toUpperCase();
What am I missing to get this stamp to work, so that each time a user selects this stamp to insert it into a PDF, it will prompt them for the date they want to use on the stamp?
Copy link to clipboard
There are many parts to a dynamic stamp. They all have to be in place for it to work. The code you have here is insufficient by itself. Just as an example the stamp name has to be prepended with "#" in order for the script to be run when the stamp is selected, and there is much more.
Read the content on these pages and watch the linked videos
Please watch the video on installing a dynamic stamp in the first link. I'm quite sure your first main issue is that you are using either the Create Stamp or Import Stamp tool to import the stamp into Acrobat. This will completely destroy all dynamic features.
The stamp needs to be distributed to other users who install it like a custom stamp. If this is impossible to do by installing it like a custom stamp, then it can't be done.
It is possible, but not in the normal way of creating a custom stamp. You need to provide them the stamp file itself, and they need to place it in the user Stamps folder of Acrobat. This is probably all well explained in the tutorials linked to above.
Acrobat doesn't have an Install Custom stamp feature. I know there is a button on the Stamp manager that says "Install" but this is a misnomer, it doesn't install a stamp, it creates a new one. And yes, this has been a problem for a very long time. Acrobat really aught to have tools for installing common resources like stamps, but it doesn't .
But this is only the first of your issues. There is a specific methodology for creating a dynamic stamp, especially one that displays a popup response box. You need to read the articles on how to create a dynamic stamp first.