Custom JavaScript verification for Q2:
var max = [% Q1_r1_c1 + Q1_r2_c1 %];
var count = 0;
for (var row = 1; row <= 8; row++) {
if (SSI_GetValue('[% QuestionName() %]_r' + row) >= 5) {
count++;
}
}
if (count > max) {
strErrorMessage = 'Error.';
}
Replace both "Q1" with the name of the first question.