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

Why doesn't the javascript run in my dynamic stamp?

Community Beginner ,
Jan 24, 2020 Jan 24, 2020

Copy link to clipboard

Copied

I've followed the instructions on creating a dynamic date stamp.

 

The drama is I either have 2 results. The date that stamps is created is always displayed, or nothing at all.

 

Neither are the desired result.

 

Are there any scerity steps required to allow the javascript to run?

 

Is it something else?

That's the javascipt i've used:

event.value = (new Date()).toString();
AFDate_FormatEx("dd mmm yyyy");

 

 

Any thoughts appreciated.

 

Bruce

TOPICS
Acrobat SDK and JavaScript

Views

391

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 ,
Jan 25, 2020 Jan 25, 2020

Copy link to clipboard

Copied

Where did you place the 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 Beginner ,
Jan 27, 2020 Jan 27, 2020

Copy link to clipboard

Copied

In the javascript dialog box in the advanced section where the instructions from Adobe told me to.

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 ,
Jan 25, 2020 Jan 25, 2020

Copy link to clipboard

Copied

I was going to suggest to also use this guidance from adobe helpx as a reference: https://helpx.adobe.com/acrobat/kb/create-custom-dynamicstamp.html

 

 

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 Beginner ,
Jan 27, 2020 Jan 27, 2020

Copy link to clipboard

Copied

Those are the instructions I followed.

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 ,
Jan 27, 2020 Jan 27, 2020

Copy link to clipboard

Copied

LATEST

Can you post a link to your stamp file.

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
Community Expert ,
Jan 26, 2020 Jan 26, 2020

Copy link to clipboard

Copied

It sounds like you are using the Acrobat Stamps tools with the stamp file (such is the stamp import and create). These tools destroy all scripts within the stamp file. You have to edit the stamp file with Acobat to add the fields and scripts, then save the file into the Acrobat Stamp folder.  

You'll find everything you ever wanted to know about Acrobat Dynamic stamps here:

https://www.pdfscripting.com/public/All_About_PDF_Stamps.cfm

 

 

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