These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Text Fields in Custom Stamps

blbrooks
Registered: Aug 1 2007
Posts: 6

How can I add a free text field to a custom Adobe stamp? I would like to have a stamp that can be used repeatedly in a single document and allow the user to type in information as needed in each stamp. Thanks!

My Product Information:
Acrobat Pro 7.0.5, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi blbrooks,

An article here at JavaScript Corner, "Dynamic Stamp Secrets" is a good place for you to start. There are example files with scripts you can examine to see how it is done. Note the instructions that you need to place the PDF into the Acrobat stamps folder to actually use the stamps.

[url=http://www.acrobatusers.com/tutorials/2007/dynamic_stamp_secrets/]http://www.acrobatusers.com/tutorials/2007/dynamic_stamp_secrets/[/url]

Hope that helps,

Dimitri
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]
blbrooks
Registered: Aug 1 2007
Posts: 6
Hello Dimitri,
Thank you for your response. I am familar with the aritcle that you referenced, and when I try to apply the Javascript window to my stamp it works fine. The problem I run into is that the after the first stamp, the Javascript window never pops up again, so all subsequent uses of that particular stamp in the same document contain the same value as initially entered. The user is not prompted each time the stamp is applied. Any thoughts? Thanks!
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Your problem is with the specific code you are using in the dynamic stamp fields.

3 questions:

1. What version of Acrobat are you using?
2. What field event is your code in?
3. What is your code? Please post it.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

blbrooks
Registered: Aug 1 2007
Posts: 6
I am using Adobe Professional 7. I'm fairly new to using Javascript so I attempted to modify the code used in your article "Dynamic Stamp Secrets" in the Custom Calculation Script box

--------------------------------------
var cAsk = "Enter Tag Number" ;
var cTitle = "Tag Number ";
if(event.source.forReal && (event.source.stampName == "InstrumentsInstRem"))
{
var cMsg = app.response(cAsk, cTitle);
event.value = cMsg;
event.source.source.info.DocumentState = cMsg;
}