Dynamic Stamp java script only runs if stamp file is open behind document trying to use the stamp
Copy link to clipboard
Copied
Hello, I am rather new to creating Dynamic stamps. They have come in handy for our courtstaff and stamping documents. The recent challenge I have is creating a stamp that has app.response for date, which works great, but I also want to have a feature to do some kind of drop down or radio button selection to input a location into the stamp from 3 choices. I had a test blank pdf open and the stamp file open as well to make changes, save and test. turns out the script i used works great for what i need but only if i have the stamp file open behind whatever document i'm stamping. Please help, i need the script to work with the stamp alone, without having it open in the back ground.
this is the script i have:
if ((event.source.forReal)&&(event.source.stampName == "#NoComp"))
{
this.getField("Clerk").value = identity.name;
this.getField("Date").value = app.response("Enter Date:");
var cRtn = app.popUpMenu(["Select Court Branch","SAN LUIS OBISPO BRANCH","PASO ROBLES BRANCH","GROVER BRANCH"]);
if (cRtn) this.getField("Location").value = cRtn;
}
Copy link to clipboard
Copied
Here is the file you have to place in the Stamps folder.
Then you will find it in your stamps and you will be able to fill in it via a dialog box.
@+

