Javascrip alert box
Hello,
I am in need of help with getting an alert box to pop up when a text box has an "X".
The top script is to dispaly an X is a sum is over 20. I would like this to trigger the alert box. If the sum is below 20 then no action. Currently the alert box pops up after each click regaurdless of the sum.
var TS = Number(this.getField("TS").value);
if (TS>=20) event.value = "X";
if ("X")app.alert("message", 3);
else event.value = "";
Thanks in advanced.
