• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Dynamic Stamp - 4 fillable fields help

New Here ,
May 20, 2019 May 20, 2019

Copy link to clipboard

Copied

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:

AP Stamp.png

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

TOPICS
Acrobat SDK and JavaScript

Views

423

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 20, 2019 May 20, 2019

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 20, 2019 May 20, 2019

Copy link to clipboard

Copied

LATEST

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines