I have a PDF form and I'm trying to declare a global variable in the Document-level Javascript editor... I'm using
global.myVariable = "0";
and then on a field in the form, I'm running the code:
if(myVariable == "0"){
app.alert("Hello!");
myVariable = "1";
}
So that it only brings up the alert once. However, it's bringing it up every time I enter anything into any field, which is annoying. Please advise!