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

ACROBAT DC PRO - Submittal Stamp

New Here ,
Mar 08, 2022 Mar 08, 2022

Hello,

 

I am trying to create a dynamic stamp and am having a hard time. Is there someone that can shed some light on this please.

 

The Idea is to add a submittal stamp to another pdf and be able to manipulate editable fields like Date, By Whom, Job Number etc. I also want to be able to select 1 of the 5 check boxes i created. I attached my attempt at the java script and not only am I getting errors it won't insert as an editable stamp. 

 

if ((event.source.forReal)&&(event.source.stampName == "ABC")
{
this.getField("Check Box1").value = app.response("Check Box1:");
this.getField("Check Box2").value = app.response("Check Box2:");
this.getField("Check Box3").value = app.response("Check Box3:");
this.getField("Check Box4").value = app.response("Check Box4:");
this.getField("Check Box5").value = app.response("Check Box5:");
this.getField("DATE").value = app.response("DATE:");
this.getField("BY").value = app.response("BY:");
this.getField("JOB #").value = app.response("JOB #:");
this.getField("SUBMITTAL REV #").value = app.response("SUBMITTAL REV #:");
}

 

Thanks you!!

TOPICS
JavaScript , PDF forms
2.4K
Translate
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
1 ACCEPTED SOLUTION
Community Expert ,
Mar 08, 2022 Mar 08, 2022

Add ) at the end of first line. 

View solution in original post

Translate
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
Adobe Employee ,
Mar 08, 2022 Mar 08, 2022

Hi Glennk

 

Hope you are doing well and sorry to hear that.

 

The workflow that you are trying to achieve is possible using the JavaScript. For more info to know how, please check the help pages below:

https://helpx.adobe.com/acrobat/using/applying-actions-scripts-pdfs.html

https://acrobatusers.com/tutorials/javascript_console/

 

Regards

Amal

Regards
Amal
Translate
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
New Here ,
Mar 08, 2022 Mar 08, 2022

Thanks so much I looked into this and the link you provided asks me to download javascript manual, I have to see this later and see if it helps with this. All I want to do is create an editable stamp that can be added to a pdf and allow me to edit some fields like I said above.

 

Thanks

Translate
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 ,
Mar 08, 2022 Mar 08, 2022

What errors does you get? 

Translate
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
New Here ,
Mar 08, 2022 Mar 08, 2022

The error I get is:

 

SyntaxError: missing ) after condition
2:

 

My concern is that my entire script is wrong and wont do what I want it to do.

Thanks! 

Translate
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 ,
Mar 08, 2022 Mar 08, 2022

Add ) at the end of first line. 

Translate
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
New Here ,
Mar 08, 2022 Mar 08, 2022

Oh awsome that worked.

Now I can finally add the stamp and edit date, by, job#, submittal # info on it.

 

But now I have a new issue the checkboxes load but I am not sure how to cross the box when I am prompted...I tried Yes, No, 1, 0, even X but they still show blank. Do you have any idea how I can check these boxes?? 

 

this.getField("Check Box1").value = app.response("Check Box1:");
this.getField("Check Box2").value = app.response("Check Box2:");
this.getField("Check Box3").value = app.response("Check Box3:");
this.getField("Check Box4").value = app.response("Check Box4:");
this.getField("Check Box5").value = app.response("Check Box5:");

Translate
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
New Here ,
Mar 08, 2022 Mar 08, 2022

I figuerd it out i was typing YES instead of Yes in the prompt and iyt would not cross my box.

Thanks you for all your help.

Translate
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
New Here ,
May 21, 2025 May 21, 2025

 

Here is what we came up with:

 

I attached the pdf. If it uploads feel free to use it.

 

if ((event.source.forReal)&&(event.source.stampName =="#535kT3Fkj9jFf6nmwJgnnA"))
{

// Get Text Fields
this.getField("Date").value = app.response("Date:");
this.getField("Name").value = app.response("By:");
this.getField("Revision").value = app.response("Revision:");

//Create a selectable option menu
var cRtn = app.popUpMenu("Approved","Reviewed as Noted","Revise and Resubmit","Rejected");

//Clear Checkbox fields
this.getField("CheckBox1").value = "No";
this.getField("CheckBox2").value = "No";
this.getField("CheckBox3").value = "No";
this.getField("CheckBox4").value = "No";

//Checks appropriate box based on menu selection
if(cRtn == "Approved")
{
this.getField("CheckBox1").value = "Yes";
}
if(cRtn == "Reviewed as Noted")
{
this.getField("CheckBox2").value = "Yes";
}
if(cRtn == "Revise & Resubmit")
{
this.getField("CheckBox3").value = "Yes";
}
if(cRtn == "Rejected")
{
this.getField("CheckBox4").value = "Yes";
}
}

Translate
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
New Here ,
Jun 11, 2025 Jun 11, 2025

Rimtech, how do I use this?  I pointed to the file you provided when creating a new custom stamp.  But it just made a dumb stamp image.  Thanks!

Translate
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
New Here ,
Jun 11, 2025 Jun 11, 2025
LATEST

You just copy the file to this folder: 

C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\plug_ins\Annotations\Stamps\ENU

This link might help

https://helpx.adobe.com/acrobat/kb/create-custom-dynamicstamp.html

just skip  to step 12

You dont need to create a custom stamp it should just show up under the stamp tool under dynamic.

Hopefully this helps.

Translate
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