HI not sure if I'm going about this the correct way but essentially this is the result I'm trying to get.
To add up each column of check boxes individually
Thanks for any help in advance
Rusty
---------------------------------------------------------- CHECK BOX 1 = 1 pack of cards var a = this.getField("partcipant_1_check_box").value; if(a == "Off") event.value = 0 ; // else if(a == 1) event.value = "1"; // else if (a == 2) event.value = ""; // else if (a == 3) event.value = ""; // + var b = this.getField("partcipant_2_check_box").value; if(b == "Off") event.value = 0 ; // else if(b == 1) event.value = "1"; // else if (b == 2) event.value = ""; // else if (b == 3) event.value = ""; // + checkbox's 3 to 17 event.value = a+b+3 to 17 ---------------------------------------------------------- CHECK BOX 2 = 2 pack of cards var a = this.getField("partcipant_1_check_box").value; if(a == "Off") event.value = 0 ; // else if(a == 1) event.value = ""; // else if (a == 2) event.value = "2"; // else if (a == 3) event.value = ""; // + var b = this.getField("partcipant_2_check_box").value; if(b == "Off") event.value = 0 ; // else if(b == 1) event.value = ""; // else if (b == 2) event.value = "2"; // else if (b == 3) event.value = ""; // + checkbox's 3 to 17 event.value = a+b+3 to 17 TOTAL FOR CHECK BOX 2 -------------------------------------------------------- CHECK BOX 3 = 3 pack of cards var a = this.getField("partcipant_1_check_box").value; if(a == "Off") event.value = "0" ; // else if(a == 1) event.value = ""; // else if (a == 2) event.value = ""; // else if (a == 3) event.value = "3"; // + var a = this.getField("partcipant_2_check_box").value; if(b == "Off") event.value = "0" ; // else if(b == 1) event.value = ""; // else if (b == 2) event.value = ""; // else if (b == 3) event.value = "3"; // + checkbox's 3 to 17 event.value = a+b+3 to 17 TOTAL FOR CHECK BOX 3 -----------------------------------------------------------------
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com