Copy link to clipboard
Copied
Hi all, I've created a custom stamp and used this.selectedAnnots[0].AP to identify the stamp name but the
dynamic stamp javascript window pops up when hovering over stamps. The code is as follows:
var cAsk1 = "Enter status of check: ";
var cMsg1 = app.response(cAsk1);
var cAsk2 = "Enter any comments:";
var cMsg2 = app.response(cAsk2);
if(event.source.forReal &&
(event.source.stampName == "#6WPNYFVTC7VYpeOsBS5RmA"))
{
AFDate_FormatEx("h:MM tt, mmm dd, yyyy");
event.value = event.source.source.documentFileName + (new Date()).toString() + "CHECKED BY: " + ((!identity.name || identity.loginName != (event.source.source || this).Collab.user) ? (event.source.source || this).Collab.user : identity.name) + " AT " + event.value + "\n" + "CHECK STATUS: " + cMsg1 + "\n" + "COMMENT: " + cMsg2;
}
Any suggestions are welcome
Move the first lines of code to be within the if-clause.
Copy link to clipboard
Copied
Move the first lines of code to be within the if-clause.