Hi, DB,
well, in my opinion there are other options:
Now the respondent selects an item and then has to enter a numeric value into the comment box?
In an multiple numerical input the respondent only enters the numerical values into the selected cells - others stay empty.
You get the same information: Which item was selected and which value was entered.
But in your case:
You know how this question type is stored in the answer table.
You see it there:
So the question validation equation could be:
The comment box is either empty or the entered value is numeric.
In
www.limesurvey.org/manual/Expression_Man...mplemented_functions
you find exactly these two needed functions
- is_empty: Determine whether a variable is considered to be empty
- is_numeric: Finds whether a variable is a number or a numeric string
We said "The comment box is either empty or the entered value is numeric."
Meaning:
is_empty(Q1_SQ001comment) OR is_numeric(Q1_SQ001comment)
This you validate for all subquestions:
(is_empty(Q1_SQ001comment) OR is_numeric(Q1_SQ001comment)) AND
(is_empty(Q1_SQ002comment) OR is_numeric(Q1_SQ002comment)) AND
...
(is_empty(Q1_SQ00Xcomment) OR is_numeric(Q1_SQ00Xcomment))
Joffm