Hi I'm having trouble trying to add the values of each group of radio buttons together for a total from each in a list of 17. The value of the partcipant_1_checkbox shows up fine but i'm unable to get a result if I add more. I have tried numerous ways, with just 2 sets.
var a = this.getField("partcipant_1_checkbox").value; if(a == 1) event.value = 1; // else if (a == 2) event.value = 2; // else if (a == 3) event.value = 3; // var b = this.getField("partcipant_2_checkbox").value; if(b == 1) event.value = 1; // else if (b == 2) event.value = 2; // else if (b == 3) event.value = 3; // event.value = (a + b);
With Thanks
Rusty
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com