Skip to main content
Participant
November 1, 2022
Answered

Dynamic Stamp Javascript Window Popping Up When Hovering Over Stamps > Dynamic

  • November 1, 2022
  • 1 reply
  • 414 views

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

 

This topic has been closed for replies.
Correct answer try67

Move the first lines of code to be within the if-clause.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
November 1, 2022

Move the first lines of code to be within the if-clause.