Using adobe Pro 9.5. I am trying to create a Custom Submittal Stamp.
The user would Stamp an electronic Submittal, A Date would auto populate, then a Java Field would pop up and ask the user to enter Custom Text in 2 places: Submittal Number and User Review Name.
The Date is the easy part. I can copy a Dynamic Stamp Auto Date field and that works every time, no problem.
It's the Java Script window that i'm have a Dog of a time dealing with.
Just to test it, I have copied a field from a previous Javascript post that works:
var cAsk = "Enter One of: Approved, Rejected, or In Process" ;
var cTitle = "Document State For Stamp ";
if(event.source.forReal && (event.source.stampName == "#UdzyXagRctZoS5p43TZ43C"))
{
var cMsg = app.response(cAsk, cTitle);
cMsg += " : " + util.printd("mm/dd/yyyy", new Date());
event.value = cMsg;
event.source.source.info.DocumentState = cMsg;
}
The precreated stamp that I save into my Stamps folder works everytime. I stamp, the Java Script window opens Every time.
The second I copy this field onto the stamp i'm trying to create it just stamps with no Java Script window.
Any suggestions?
If I create the field from the Forms editor and then copy and paste the Java Script into it, it still doesn't work.
Please help.