You need to add additional code so that the app.response code only execute when that particular stamp is actually being applied. For this you need to determine the stamp name. For more information, see: http://acrobatusers.com/tutorials/dynamic_stamp_secrets
How do i get to the console for the stamp?
Thanks for the suggestions.
Sadly, none of the above is working.
Ctrl+J does not work. I dont have all the options in my java list
I tried opening the stamp and finding the name but that didnt work either.
Maybe i should mention I have Adobe Acrobat XI Standard
You also might need to be out of the Form Edit mode to access the template object.
You have an extra quotation mark at the end of the stamp name.
I would recommend changing that line of code to:
if (event.source && event.source.forReal && event.source.stampName === "#cvZKQmEBPHBiVNcb21tn8A")
I am SO frustrated!! I can get the thing to work without the stamp "name" in it if the file is open on my computer while i am using it.
If i close the file and then try to use it, the question box pops without the stamp. No good
So i add the script with the stamp "name" and not only does it still not work and only pull up the question box, now the answer in my question box doesnt change anymore.
If I email you the stamp did you say you could fix it? Im about to give up
After a few deep breathes and a little more research, I finally got it to work! AHHHH SUCCESS!!!!
Just in case any other newbie like me ever needs it....
var cAsk = "Enter Bulletin Number" ;
var cTitle = "Bulletin Number: ";
if(event.source.forReal && (event.source.stampName == "#4-T8yKAAEuISpm9hHP0NdD"))
var cMsg = app.response(cAsk, cTitle);
event.value = cMsg;
event.source.source.info.exhibit = cMsg;
Thank for all the help!!!!!
Im sure i will be back
To add more clarification to this super fun stamps game I've been trying to play for the better part of 2 or 3 days now, going to try to blurt this out quickly so I can get dinner.
Here is a solution to adding all the stamps you used to have into new Acrobat (as the whole "just copy the file into the Roaming Acrobat Stamps folder" didn't do anything for me)
in Acrobat, create a new custom stamp, with whatever, this results in the crazy file name in the user stamp folder.
Take your old stamps file, rename it to this file name, (and put into the Title field of that acrobat properties the Name of the Stamps you'd like them to be contained under, this will be what shows up when you bring up the stamp tool.
And the whole dynamic stamp gobblygook above with the #crapblahsputting name, do away with that to make java and forms easier by opening page templates and just going through and making sure the pages in your file are accounted for and if you have the #crazyname then change it to something like #KISS=Keep it Simple Stupid (the Keep it Simple Stupid, will be what shows up if you were to show Stamp Names in Acrobat) and now when you try to do other Forms Java scripting you can just say event.source.stampName == "#KISS" and life will be easier
Also in the organize page menu drag the files around so they can be in a better order than just how you added them into Stamp originally.
You can drag in new files to this stamp file as well in the future too, just be sure to go to the page templates and get that page a name, #KISS2=Keep it Simple Squared
I hope this also saves someone the frustration of this Stamp world, I'm sure that now that I've FINALLY figured it out, Adobe will remove the feature.
Just dragging what one thinks is a "stamp" file into the user stamp directory does not work unless one is copying an existing stamp file form a previous version of Acrobat or another installation of the stamp,
There are requirements beyond just being a PDF. The gobbledygook name is actually a template name and is the PDF page being add to the stamps is not a template then Acrobat/Reader's manage stamps processing will convert the page to a template and provide a unique name. In earlier versions many users assigned their own names to the PDF pages being designed for use as stamp. Note the name must be unique, no duplicate names allowed between the application and user stamps.
If one follows the instructions fully and in detail there should be no issue with using stamps.
One should realize that stamps are one type of annotation and that remove them might mean the loss of annotations ore the depreciation of the feature.