Skip to main content
Participant
Nov 1, 2022 3:14 PM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Nov 1, 2022 3:35 PM UTC

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

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Nov 1, 2022 3:35 PM UTC

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

Translate