1 Reply Latest reply on May 10, 2014 1:51 AM by try67

    Dynamic stamp scripting which worked in Acrobat 9 Pro not working in Acrobat XI Pro

    fred237698

      I don't know JavaScript, so I am flying blind. I have recently updated to Acrobat XI Pro (on Win 7 Pro). I have had trouble setting up the same dynamic stamps that I had working in Acrobat 9. Just creating the stamps has been difficult, but the real pain has been trying to use the same scripting that I was using before. In particular, I have a field in which I want to enter details of a payment, such as cheque number. The script that worked before was:

       

      var cAsk = "Enter Payment Details" ;

      var cTitle = "Payment Details:  ";

      if(event.source.forReal && (event.source.stampName == "#X-MzCINchnGa7KblIGbv5C"))

      {

        var cMsg = app.response(cAsk, cTitle);

        event.value = cMsg;

        event.source.source.info.exhibit = cMsg;

      }

       

      The JavaScript debugger goes nuts about event.source being null and I am completely lost.

       

      Can anyone suggest a script which is likely to work for me? Is there any tutorial or similar material dealing with these issues in Acrobat XI Pro and in language that I am likely to understand?

       

      Thanks in advance.