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

Community Beginner ,
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, General troubleshooting, PDF forms

Views

95

Likes

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

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

Community Beginner ,
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, General troubleshooting, PDF forms

Views

96

Likes

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
Jan 24, 2020 0
Most Valuable Participant ,
Jan 25, 2020

Copy link to clipboard

Copied

Where did you place the code?

Likes

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
Reply
Loading...
Jan 25, 2020 0
Community Beginner ,
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.

Likes

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
Reply
Loading...
Jan 27, 2020 0
Adobe Community Professional ,
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

 

 

Likes

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
Reply
Loading...
Jan 25, 2020 0
Community Beginner ,
Jan 27, 2020

Copy link to clipboard

Copied

Those are the instructions I followed.

Likes

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
Reply
Loading...
Jan 27, 2020 0
Adobe Community Professional ,
Jan 27, 2020

Copy link to clipboard

Copied

Can you post a link to your stamp file.

Likes

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
Reply
Loading...
Jan 27, 2020 0
Adobe Community Professional ,
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

 

 

Likes

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
Reply
Loading...
Jan 26, 2020 1