We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
I have successfully created a custom dynamic stamp with many custom Java script fields which pop up for you to enter the content which will be filled in to the stamp once placed
The whole sequence has 6 pop ups where you enter the information, then when i go to drop the stamp in place on the document it calls up the whole sequence again, entering all the info a second time. Once comepleted the second time, the content is all correct and you can place it into the document but how do i stop having to do the process twice?
Also, the custom stamp won't enter on some scanned document the first attempt - why would this be?
It's hard to say for sure without seeing the stamp file in question. If you can post it, we can take a look at it.
Thank you for replying.. post pictures or attach the stamp file itself?
Attach the stamp file.
Sorry, where does the stamp name? You mean what is the name in the file location?
Look at the link.
Stamp scripts are called several times for different reasons. For example, they are called everytime any stamp in the same stamp file is displayed on the stamp menu, or when a preview for any stamp in the stamp file, as well as when the stamp is actually placed. To only display popups when the stamp is placed, the stamp script has to be properly qualified. It also helps to name the stamp properly.
You can read about it here:
I have followed and read these and this isnt helping - the stamp is still popping up 2 times.
Have you changed the file?
Yes, i tried changing file and its name etc.
I got on to adobe chat support. I posted -
For each of the text fields, i have entered script into the custom calulcation script -
eg. this.getField("Date Received").value = app.response("Date Received:");
So I was testing by creating the same stamp at my end, in case if we need to do something in the application to correct it. As after applying the script it does pop up twice.
When use the general event.value = util.printd(); script. It works okay
I tried to change the script as per above and it made the stamp pop ups not come up any more to input the fields.
The 6 seperate scripts in the stamp are:
this.getField("Date Current").value = app.response("Date Current:");
this.getField("Date Received").value = app.response("Date Received:");
this.getField("Cost Centre").value = app.response("Cost Centre:");
this.getField("Purchase Order Number").value = app.response("Purchase Order Number:");
this.getField("Budget Line Item").value = app.response("Budget Line Item");
this.getField("Amount").value = app.response("Amount");
Thanks in Advance!
You doesn't check the stamp name.
You are missing some key information. This article covers everthing you need to know:
In the "Stamp Secrets" article it explains that the stamp script needs to be qualified with a special event property and the stamp name, in order to only run when the stamp is placed. Read the artcle and follow the instructions.
Can you post the stamp code? We need to actually see what you are doing.
Thanks Thom, please see above!