How to make a multi-line, user-input, custom stamp in Acrobat.

From the open discussion at http://www.experts-exchange.com/Web_Development/Document_Imaging/Adobe_Acrobat/Q_24278712.html
a subsequent better answer came in from khkremer and this question is opened to award the points.
BobArnettAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Karl Heinz KremerCommented:
Use the following code instead of the original example JavaScript code:
var dialog = {
        retString: "",
 
        commit:function (dialog) { // called when OK pressed 
                var results = dialog.store();
                this.retString = results["stxt"];
        },      
 
        description:
        {       
                name: "Stamp Information",    // Dialog box title
                elements:
                [       
                        {       
                                type: "view", 
                                elements:
                                [       
                                        {       
                                                name: "Enter Information: ",
                                                type: "static_text",
                                        },      
                                        {       
                                                item_id: "stxt", 
                                                type: "edit_text",
                                                multiline: true,
                                                width: 300,
                                                height: 80
                                        },      
                                        {       
                                                type: "ok_cancel",
                                                ok_name: "Ok",
                                                cancel_name: "Cancel"
                                        },      
                                ]       
                        },      
                ]       
        }       
}; 
 
 
if(event.source.forReal && (event.source.stampName == "#UdzyXagRctZoS5p43TZ43C"))
{
  if ("ok" == app.execDialog(dialog))
  {
    var cMsg = dialog.retString;
    event.value = cMsg;
    event.source.source.info.exhibit = cMsg;
  }
}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BobArnettAuthor Commented:
Thanks again.
0
RubyBCommented:
I use Thom Parker's Dynamic Stamp Secrets to build my user input stamps.  Is there a possible way to combine your multi-line text box with the user input box?  My users are approving invoices and have to specify the amount and the account numbers.

Since stamps are limited to a single user input box, if I could prompt my users to enter first the amount and then copy (ctrl+V) the coding information (slipped into the clipboard from an Access database) on multilines following the amount, then I'd be one happy person.

I can use the current multi-line effectively to create a coded user input stamp for each project, but I'd really like to create one stamp that could be "populated on the fly" and as project information came into the database.
0
Karl Heinz KremerCommented:
RubyB - it's in general not a good idea to try to post additional questions in an already closed question. Please open a new question (which you can tag as related to this question).
0
RubyBCommented:
Will do.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Acrobat

From novice to tech pro — start learning today.