Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Forms
Viewing all articles
Browse latest Browse all 61369

how to sum 'columns' of radio buttons

$
0
0

Ok, this may sound odd, and I have very limited knowledge of formcalc, but here goes.

 

I have 6 rows of radio buttons, each its own group.  Each row has 5 buttons.  The value for each row will be set from 1 to 5 depending on which button the user selects. 

 

Below all of the buttons I need 5 numeric fields that will add up how many of each 'column' the user has entered.  Something like two 1's one 2 three 3's zero 4's zero 5's.

 

I can't figure out how to make this happen.

 

for the first numeric field (counting first column/1's) i can get it to count the first row by doing something like:

 

var ones = 0

if (row1<>1)

then ones

else ones+1

 

That's all I can get to work...

I am probably not even  barking up the right tree here... any help would be appreciated.

 

Chris

 

ps, I know i could just group the buttons vertically, but then you would be able to select multiple options along the 'row' and that can't be allowed.


Viewing all articles
Browse latest Browse all 61369

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>