I'm quite new at this.
It's 3 check boxes for each row, with different javascript, scripts is working, but I'd like to have them in document level. Anybody want to help?
A.1-C.3 and so on to C.31(31 rows)
A.1 script ;
this.getField("inn.1").value = this.getField("ut.1").value
this.getField("P.1").value = this.getField("ut.1").value * 0.20
VarA = this.getField("P.1").value;
VarA = this.getField("P.1").value;
if(VarA < 0) this.getField("b.1").value = (VarA);
if(VarA > 0) this.getField("a.1").value = (VarA);
B.1 script;
this.getField("P.1").value = (this.getField("ut.1").value) * 0.25;
this.getField("inn.1").value = this.getField("ut.1").value + this.getField("P.1").value;
VarA = this.getField("P.1").value;
if(VarA < 0) this.getField("b.1").value = (VarA);
if(VarA > 0) this.getField("a.1").value = (VarA);
C.1 script
this.getField("inn.1").value = this.getField("ut.1").value
this.getField("c.1").value = this.getField("ut.1").value
This is working, but it's been more simple to create a document level script and just call the script for A, B or C, at each row, how do I do this.
This form I use to summarize 2 accounts to find correct difference. The P Field is VAT, and some numbers is with no VAT (C), included VAT (A) or should be calculated with VAT (B)
For your check boxes you can use the following 'Mouse Up' action.
ShowFieldName()
George Kaiser