Copy link to clipboard
Copied
Hello:
I am brand new to this.................. I'm trying to develop a script for a dynamic stamp that will create a popup dropdown list of accounts to be inserted into the "Account" field of my dynamic stamp, along with also populating the "Date" field with the current date. Could anyone help me with this? If someone could post script that just says something like "Account 1" "Account 2" etc., I can change the account names myself. Thanks so much! Below is what I have so far, but it only gives a blank "Account" popup. I have no idea how to make a dropdown list. I have also attached my template. Thanks again!
{
this.getField("Account").value=app.response("Account:");
this.getField("Date").value=util.printd("mm/dd/yyyy",new Date());
}
Copy link to clipboard
Copied
For this you must create a dialog.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
The type of scripting you're asking about is more complex than you think. You will need to either learn how to do this yourself, or hire a developer.
Here are some things to look at:
https://www.pdfscripting.com/public/images/Video/PDFStampsGoneWild_mp4.cfm
https://www.pdfscripting.com/public/ACRODIALOGS-OVERVIEW.cfm
https://www.pdfscripting.com/public/All_About_PDF_Stamps.cfm
Copy link to clipboard
Copied
Copy link to clipboard
Copied
So the first thing to do is learn about scripting PDF forms, since stamp scripts are basically specialized form scripts.
https://www.pdfscripting.com/public/PDF-Form-Scripting.cfm
Custom Dialogs are a different kind of animal. They require a good knowlege of Core JavaScript.
You'll find some help on this forum, here's a simple search. Not all of the results are about coding custom dialogs.
Here's the Acrobat JavaScript Reference Entry:
https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#execdialog
Find more inspiration, events, and resources on the new Adobe Community
Explore Now