Dynamic Stamp returning null for event.source
I am trying to create a custom dynamic stamp in which the user is prompter to enter information when the stamp is placed.
Here is the code I am using:
var cAsk = "Please enter Inspection Date";
var cTitle = "Inspection Date";
if(event.source.forReal &&
(event.source.stampName == "#-65c2ZoyHu7QwjOp-fjeqA"))
{
var cMsg = app.response(cAsk, cTitle);
cMsg += util.printd("mm/dd/yyyy", new Date());
event.value = cMsg;
event.source.source.info.DocumentState = cMsg;
}
However I keep getting the error: event.source is null.
Help!!
