Skip to main content
Participating Frequently
January 25, 2020
Question

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

  • January 25, 2020
  • 3 replies
  • 683 views

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

This topic has been closed for replies.

3 replies

Thom Parker
Community Expert
Community Expert
January 26, 2020

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 PDFScriptingUse the Acrobat JavaScript Reference early and often
ls_rbls
Community Expert
Community Expert
January 25, 2020

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

 

 

by9811Author
Participating Frequently
January 27, 2020

Those are the instructions I followed.

Thom Parker
Community Expert
Community Expert
January 28, 2020

Can you post a link to your stamp file.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
January 25, 2020

Where did you place the code?

by9811Author
Participating Frequently
January 27, 2020

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