PDF XChange Support may be unable to assist you with the advanced JS involved here, as such any JS questions are best directed to our Forums.
As with creating Dynamic Stamps, these actions require a valid PDF-XChange Editor Plus or PDF-XChange PRO license to be performed.
If you need to review these aspects, please re-read these articles:
With this information, you are able to create a stamp and add in Dynamic elements, the purpose of this article is to supplement the steps involved in creating custom operations, dialogs, and adding user input to these dynamic stamps. Some examples of where this could be useful:
Ensure you have read the Review section before beginning this proces.
This example will use the Manually Entered Date JS example in the txt file above.
1. Open the Stamp PDF file and select the field for which you wish to view a dialog box for additional input, then open the Properties pane (Ctrl+`):
Most advanced stamps make some reference to the "Stamp ID", including our example stamp. To locate this after creating your initial static version of the stamp, place it and you will see an ID in the properties pane:
Take this ID and be sure to overwrite the original Stamp ID in the example file (or any other stamps you may be using) in any locations where it is referenced:
4. After finishing this, applying the JS, and saving the document, you can then test placing the stamp
If you cannot save the document because it is "In use" by the Editor, this is likely because you are directly editing the document from within the dynamic stamps folder:
Save As... the document to your Desktop, then Close the Editor (do not change the file name)
Open the dynamic stamps directory located at ( %appdata%\Tracker Software\PDFXEditor\3.0\Stamps )
Move the new stamp from the desktop into this folder and Overwrite the old version.
Reopen the Editor and the new stamp should have taken the old stamps place.
5. Upon placing the example stamp a "Specify Date" dialog opens, to ask for user input prior to placing the stamp:
Your Stamp should work similarly when it is complete. You can download the sample stamp file for reference here.
If you have further questions please consult the Adobe JS API Reference first, then post directly to the forums with your current sample script and a description of your troubles.