I am working on a time sheet. There are text fields that count the check boxes. The total number is then calculated in another Text box. This sum is in "Text16". I need an If statement that checks Text 16 and if the sum does not equal 10 a message will pop and say "Total Days do not equal 10". I have search these boards and tried several different variations.
I can't use validation on Text16 because the message will pop up everytime they check a box and they will have to keep clicking "okay" which would be annoying.
I entered a text box and under custom calculation
I have tried
If (Text16 != 10){document.write("Total Days do not equal 10")
another
//Get total Days
var Text16=this.getField("Text16");
var nval=this.get.Field("Text16").value;
if(nval != 10)this.getfield ("CommentField").value"Total Days do not equal10";
as you might be able to tell I am taking existing code and trying to plug items in to fit my needs.
I have used visual basic with Excel but never tried using the Javascript with Adobe.
Any help would be greatly appreciated.
Thanks!
app.alert()
to display a pop-up.
George Kaiser