Hello,
This is a variation on the issue I had here:
forums.limesurvey.org/forum/design-issue...array-5-point-choice
So, same version of LimeSurvey: 3.15.0+181008.
Respondents need to select 5 among the propositions for which they gave a 4 or 5 score in a serie of arrays (5 point choice) above in the questionnaire. If there are 5 of less answers with a 4 or 5 score, the question should not be shown, and all these answers should be selected.
See the attached questionnaire, there are 2 question groups:
- group 1 with all the propositions to be scores (5 point choice array)
- group 2 with the multiple choice question (q5) with the answers with a score or 4 or 5
Here is how group 1 looks like:
Here is what I want to be displayed for group 2 with more than 5 answers with a 4 or 5 score (nothing should be displayed if there are 5 or less answers with a 4 or 5 score):
What should I use as relevance equation for the multiple choice question (q5)?
I have tried to add a numerical input question (counter) in the group 1 and then an equation question (q10) in the group 2 with if() to add 1 to the counter variable if the answer was 4 of 5, but I had syntax problems:
q10 type equation content is as follows:
Calculate counter = number of answers with a score of 4 or 5 (then have relevance equation as counter>5)
{counter=0}
{if(q1_SQ001>3, counter=sum(counter,1))}
{if(q1_SQ002>3, counter=sum(counter,1))}
{if(q1_SQ003>3, counter=sum(counter,1))}
{if(q2_SQ001>3, counter=sum(counter,1))}
{if(q2_SQ002>3, counter=sum(counter,1))}
{if(q2_SQ003>3, counter=sum(counter,1))}
{if(q3_SQ001>3, counter=sum(counter,1))}
{if(q3_SQ002>3, counter=sum(counter,1))}
{if(q3_SQ003>3, counter=sum(counter,1))}
{if(q4_SQ001>3, counter=sum(counter,1))}
{if(q4_SQ002>3, counter=sum(counter,1))}
{if(q4_SQ003>3, counter=sum(counter,1))}
Any help greatly appreciated.