Hi,
the first - obvious - error is:
You have y-axis codes "SQ001", "SQ002", ... and also x-axis codes "SQ001", "SQ002", ...
But in your validation equation you adress a subquestion code "
SQ1".
Next: Your array is a two dimensional array; to adress a cell you need the y-axis code
and the x-axis code
As you see here in the manual
[url]
www.limesurvey.org/manual/ExpressionScri...code_variable_naming
[/url]
If you are not sure, just activate the survey, and have a look at the responses table.
Now the solution that comes to mind at first is: "Sum all cells of a row" - for all rows
sum(Q1_SQ001_SQ001.NAOK,Q1_SQ001_SQ002.NAOK,Q1_SQ001_SQ003.NAOK,Q1_SQ001_SQ004.NAOK,Q1_SQ001_SQ005.NAOK,Q1_SQ001_SQ006.NAOK)==100 AND
sum(Q1_SQ002_SQ001.NAOK,Q1_SQ002_SQ002.NAOK,Q1_SQ002_SQ003.NAOK,Q1_SQ002_SQ004.NAOK,Q1_SQ002_SQ005.NAOK,Q1_SQ002_SQ006.NAOK)==100 AND
...
But if you read the manual here
[url]
www.limesurvey.org/manual/ExpressionScri...%22that%22_variables
[/url]
you can shorten this.
But only if you do the coding a bit different.
Instead of "SQ00x" in both directions you may use "Y01", "Y02",... for the y-axis, and "X01", "X02",... for the x-axis.
This way you won't get confused later (what was y, what was x) when you import the data into your analysis tool.
Then you can validare by
sum(self.sq_Y01)==100 and sum(self.sq_Y02)==100 and sum(self.sq_Y03)==100 and ...
But beware: You will get an initial error.
When the question is displayed all sums are equal 0 (<>100). So there is an error.
Joffm