Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Howcan I make conditions for question group

  • Prishel
  • Prishel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #145954 by Prishel
Hello!

Please help.
I need make condition for the question group that the participants must answer only one question (and each participant can enswer differetn question depends on their opinion) any of all questions from this group. And after this participant can not answer the question at this group and go to the next question group.
So,
I go to question group
Answer one of the question (depends on me which one)
Then I lose the opportunity answer another question at this question group and go to the next question group.

Can someone help, please?

Thanks.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #145967 by DenisChenu
Replied by DenisChenu on topic Howcan I make conditions for question group
If you question are like this (for example) 3 single choice question Q1,Q2 and Q3

Q1 relevance : {count(Q2.NAOK,Q3.NAOK)==0}
Q2 relevance : {count(Q1.NAOK,Q3.NAOK)==0}
Q3 relevance : {count(Q1.NAOK,Q2.NAOK)==0}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 7 years 3 months ago by DenisChenu. Reason: .NAOK ....
The topic has been locked.
More
7 years 3 months ago #145968 by Ben_V
Hi,
Just use an equation to set a condition in the group relevance field

Please browse the manual & forums around "group relevance" terms because there are a lot of discussions about this topic ;)

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The following user(s) said Thank You: EasbiIkhsan
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145971 by tpartner
Replied by tpartner on topic Howcan I make conditions for question group
I recommend using something other than single-choice. Once one is selected it cannot be deselected so the respondent has no opportunity to choose another question.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145994 by DenisChenu
Replied by DenisChenu on topic Howcan I make conditions for question group

tpartner wrote: I recommend using something other than single-choice. Once one is selected it cannot be deselected so the respondent has no opportunity to choose another question.

Seems to be desired behaviour ?

And if you set "single choice" question type not mandatory : user can choose 'No answer' and see other question ?

Answer one of the question (depends on me which one)
Then I lose the opportunity answer another question at this question group and go to the next question group.

;)

====
Another solution:
- short text question type with validation : count(Q1.NAOK,Q2.NAOK,Q3.NAOK)==1
- Text display questiuon type with relevance count(Q1.NAOK,Q2.NAOK,Q3.NAOK)>=1 and text "You must choose only one answer"

Then user can select any answer he want, BUT can not go to next group with more than one answer selected :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose