Hi,
I need to validate subquestions in an array(numbers) with checkboxes. For each row, no more than two options should be selected. I can write the following as question validation (as it is shown in the manual):
Code:
[color=#3498db]sum(self.sq_SQ001) <=2 && sum(self.sq_SQ002) && ..[/color].
Is it possible to do this in a more efficient way? For me, this would be very helpful, because I have a lot of these questions and in each question, there are a lot of subquestions. So the approach above will take long time. Is it, for example, possible to do this in a loop?
I have tried subquestion validation with
this, however, I dont know how to get access to the columns.
Thank you for your help!