Code for the constructed list for Q2 and Q3:
Begin Unverified Perl
if (GETVALUE('Q1_1') || GETVALUE('Q1_2')) {
ADD('list1', 1);
ADD('list1', 2);
}
if (GETVALUE('Q1_3')) {
ADD('list1', 3);
}
if (GETVALUE('Q1_4')) {
ADD('list1', 4);
}
End Unverified
"Q1" and "list1" must be replaced with the name of the first question and its list, respectively.
Custom JavaScript verification for Q2:
var sum = 0;
for (var r = 1; r <= 4; r++) {
sum += SSI_GetValue('Q2_r' + r + '_c1');
sum += SSI_GetValue('Q3_r' + r + '_c1');
}
if (sum == 0) {
strErrorMessage = 'Error.';
}
"Q2" and "Q3" must be replaced with the names of the second and third questions.