However when I use javascript to design my survey in school limesurvey system, it didn't work.
In the survey you sent there are neither subquestions nor answer options in the question.
Well, the are overwritten by the script, but they have to be present. Otherwise there are no fields created in the database
Like
And the dropdowns:
You saw this line
$('.answer-item.answer_cell_X001',
Meaning the cell is coded "X001"; you let the default code "SQ001"
Either you change the subquestion codes in your question or in the javascript.
You see, I prefer to code the y-axis with "Y001", "Y002",... and the x-axis "X001", "X002",...
Less confusing, if there is in the dataset Q1_Y001_X003, instead of Q1_SQ001_SQ003 (what was column, what was row?)
And if you want to use the "self" and "that" variables in Expression manager this is mandatory; otherwise EM cannot distinguish between rows and columns.
part 1: Relevance equations are not surrounded by quotes
"Q11==2" or "Q11=
"
Q11==2 or Q11=
You only surround answeroptions by quotes if the are alphanumerical, like
Q11=="A1" or Q11=="A3"In part0, Q00 is designed to go on or stop the survey, if choose "yes", the survey will go on; if choose "no", then jump to "end part" and end the survey.
You'd better use a quota to screen out these people
Otherwise you had to add a relevance equation like Q00=="A1" to all your groups.
And why don't you use the built in consent?
Joffm
Some universities don't allow javascript.
But I think to remember that TUE allows javascript to the students.
Some time ago, there was an interesting survey of one of your colleagues that used javascript
So there shouldn't be any problem except some small mistakes on your side.
And at last:
If you want, you may send the lss as private message.
Though I usualyy do not care about them, this is an exception.