Ok,
Eventually what I want to do is this:
1. User enters a bunch of checkboxes in Q1, an array with 10 sub-questions, sq1 - 10.
2. I create a new, hidden array. Call it Q2. Q2 has 10 subquestions. This new hidden array will test the sum of the checkboxes.
3. If there is more than one checkbox checked for Q1_sq1, then the new array value for Q2_sq1 should be 1. If not, leave it empty.
4. I create a new question, Q3. Q3 also has 10 sub-questions. Q3 has an array filter based on Q2.
This way, only the questions where the user selects more than one checkbox is brought into Q3. Its the way I conceptualized a workaround to do this. Otherwise, I can't get Q3 to filter on Q1 with only the values that have more than one checkbox.
I have to have the in between step it seems.
This is what I'm eventually trying to do. I'm eventually trying to get a way to use array filters, but to make more customized interim arrays that populate dynamically based on some if statements.
So..
When I populate my interim array, what jQuery or javascript command should I use?
I want something like:
Remember, Q1 is my original array of checkboxes.
Q2 a new multi number question.
var thesum;
thesum = sum(${that.Q1.sq_sq1.NAOK});
if( thesum >1)
{
$({Q2.sq1}) = 1;
}
Finally, Q3 is created. It is, say, a 5-point array. It has an array filter based on Q2.
Thus, Q3 effectively has an array filter based on the answers in Q1 that have more than one box checked.
My syntax is probably all sorts of wrong. Can you help me with that?