I have a multiple response question with the qcode "Q1". The subquestions are coded "SQ001", "SQ002", etc. I want to loop through responses in a later question (let's call it "Q2") based on the responses selected in "Q1".
Currently, I have to write a couple lines of code for each subquestion within my loop, like this:
I'd like to replace '{Q1_SQ001.NAOK}' with something like '{Q1_SQ00' + i + '.NAOK}' but it doesn't work. Is there a way to do this where I don't have to repeat my code for each subquestion?
There is no sub-question relevance option for radio button, it is available for checkbox. I have 9 if statement so that I can replace VAR in {Q1_SQ00<VAR>.NAOK} by number
Did you look at the manual ? Put the code of checkbox question in the array filter of the radio list.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.