These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Trying to add up each column of check boxes individually

RustyWood
Registered: Mar 16 2010
Posts: 83

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
 
 
-----------------------------------------------------------------

My Product Information:
Acrobat Standard 9.0, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2398
There's no need to open a new thread each time. Just post in one of your other threads about this.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

RustyWood
Registered: Mar 16 2010
Posts: 83
Will do it's just I'm getting no feed back if is this possible

Cheers
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Like I told you before, it's possible, but your code is incorrect. To start with, I don't understand how can a check-box have 4 different values... A check-box is either checked, or it's not checked.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

RustyWood
Registered: Mar 16 2010
Posts: 83
HI

There are 3 check boxes assigned to each participant (17 participants in the list)
check box 1 +value of 1 check box 2 = value of 2 check box 3 = value of 3


check box 1 check box 2 check box 3


17 sets of checkboxes in rows for each participant




total total total
of of of
check box 1 check box 2 check box 3


I'm trying to get the total from each list of boxes

Thanks Rusty
try67
Expert
Registered: Oct 30 2008
Posts: 2398
But all the checkboxes have unique names, no?
Something like:

cb_1_1 cb_1_2 cb_1_3
cb_2_1 cb_2_2 cb_2_3
etc.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

RustyWood
Registered: Mar 16 2010
Posts: 83
Thanks,
Because I need only one radio button to be checked with no options of checking two at the same time I've done it like this;

check box 1 check box 2 check box 3 extra set

partcipant_1_check_box button value 1 button value 2 button value 3 text number box
partcipant_2_check_box button value 1 button value 2 button value 3 text number box
partcipant_3_check_box button value 1 button value 2 button value 3 text number box
partcipant_4_check_box button value 1 button value 2 button value 3 text number box

total total total total


when check box 3 has been checked then the participant has the option of selecting the extra sets by adding a number into the text box of the amount they require.

Hope this makes sense..


Thanks Again
try67
Expert
Registered: Oct 30 2008
Posts: 2398
It doesn't. Are you talking about radio-buttons or about check-boxes?
As I said, just post the file somewhere so we can have a look for ourselves.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

RustyWood
Registered: Mar 16 2010
Posts: 83
Sorry on the form it says check boxes for the participants

But I'm using radio boxes


Where can I post this form I had a look but couldn't find a place to upload it too

Thanks again
try67
Expert
Registered: Oct 30 2008
Posts: 2398
acrobat.com
rapidshare.com

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

try67
Expert
Registered: Oct 30 2008
Posts: 2398
"Document can't be found."

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

try67
Expert
Registered: Oct 30 2008
Posts: 2398
Still can't be found.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

RustyWood
Registered: Mar 16 2010
Posts: 83
Works fine for me when I hit the link???
try67
Expert
Registered: Oct 30 2008
Posts: 2398
OK. Good luck, then.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

RustyWood
Registered: Mar 16 2010
Posts: 83
This is the link

https://acrobat.com/#d=*zTY9uZuJiwwCn6jtOA6eg

I've checked the box which say

allow anyone with this link to view the document

is there anything else that should be checked

??????
RustyWood
Registered: Mar 16 2010
Posts: 83
Yep I tried various ways sending it to my boys laptop

all access

and the link never works??


if I send it as a co author directly to his email it works!

need to get that ironed out or not much point of me doing this form..


Can I send it to your email direct

Rusty
RustyWood
Registered: Mar 16 2010
Posts: 83
Found out the link works if you copy and paste it into your browser on windows but on mac it seems fine just to click the link?
Any ideas on this??

Thanks

Rusty