Skip to main content
Participant
May 20, 2019
Question

Dynamic Stamp - 4 fillable fields help

  • May 20, 2019
  • 2 replies
  • 697 views

Hello,

I'm trying to make a stamp with 4 fillable fields. I don't need any date scripts since the employee wants to type in any date she needs. I've never done scripting so I've been searching everywhere for the basic script that I could just change some name fields. I thought I had it but when applying the stamp no editable box pops up, just places the stamp as static.

This is my stamp:

This is the script I tried:

if (event.source && event.source.forReal && event.source.stampName == "#AP Stamp")

{

this.getField("Vendor").value = app.response("Vendor:");

this.getField("GL").value = app.response("GL");

this.getField("Vendor").value = app.response("Date");

this.getField("Vendor").value = app.response("Paid By");

}

Any help would be GREATLY appreciated,

Thank you

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
May 20, 2019

Read this article:

https://acrobatusers.com/tutorials/dynamic_stamp_secrets

And you'll find everything you ever need to know about dynamic stamps here:

PDF Stamp Annotations

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
May 20, 2019

Where did you place the code?

Also, you need to replace "#AP Stamp" with the actual AP value of your stamp file.

To do so apply it to a page, click it with the mouse and then run this code from the JS Console:

this.selectedAnnots[0].AP

Enter the value that gets printed out to the console into your code.