Welcome to the LimeSurvey Community Forum

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

Condition for a whole group of questions

  • gdybxxf91f
  • gdybxxf91f's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #97046 by gdybxxf91f
Condition for a whole group of questions was created by gdybxxf91f
Hi everybody!

I need help because I want to add a condition for a whole group of question, I asked in chat and they wrote about Relevance Equation field. Can anybody show me how to use this??

Thank you
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 9 months ago #97093 by tpartner
Replied by tpartner on topic Condition for a whole group of questions
You can set relevance for a whole group:

Attachment Capture_2013-06-19.JPG not found




For more on relevance, see - manual.limesurvey.org/Expression_Manager

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: gdybxxf91f
The topic has been locked.
  • gdybxxf91f
  • gdybxxf91f's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #97103 by gdybxxf91f
Replied by gdybxxf91f on topic Condition for a whole group of questions
Now I have another doubt. For a group of question I want to show only in case the answers for two different question is a particular one.
e.g: P024 = A1 and P025 = A1

How I write this?? :(
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 9 months ago #97112 by DenisChenu
Replied by DenisChenu on topic Condition for a whole group of questions

Mcrigo13 wrote: How I write this?? :(

Code:
P024 == "A1" and P025 == "A1"

tpartner wrote: For more on relevance, see - manual.limesurvey.org/Expression_Manager


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.
  • gdybxxf91f
  • gdybxxf91f's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 9 months ago #97118 by gdybxxf91f
Replied by gdybxxf91f on topic Condition for a whole group of questions
((P024 == "A1" || P024 == "A2" || P024 == "A3" || P024 == "A6" && P025 == "Y" || P024 == "A7" && P025 == "Y"))
I have this for a relevance group question. For P024 option 6 and 7 works, but when I answer A1 - A3 the group question doesnot appear :S
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 9 months ago #97122 by tpartner
Replied by tpartner on topic Condition for a whole group of questions
It looks like you only want "A6" and "A7" to work if P025 == "Y".

If so, the equation would be:
Code:
(P024 == "A1" || P024 == "A2" || P024 == "A3" || (P024 == "A6" && P025 == "Y") || (P024 == "A7" && P025 == "Y") )

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: gdybxxf91f
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose