Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Condition for a whole group of questions

Condition for a whole group of questions 3 years 5 months ago #97046

  • gdybxxf91f
  • gdybxxf91f's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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 administrator has disabled public write access.

Condition for a whole group of questions 3 years 5 months ago #97093

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6566
  • Thank you received: 1477
  • Karma: 578
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.
The administrator has disabled public write access.
The following user(s) said Thank You: gdybxxf91f

Condition for a whole group of questions 3 years 5 months ago #97103

  • gdybxxf91f
  • gdybxxf91f's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
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 administrator has disabled public write access.

Condition for a whole group of questions 3 years 5 months ago #97112

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 9555
  • Thank you received: 1372
  • Karma: 389
Mcrigo13 wrote:
How I write this?? :(
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 (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.

Condition for a whole group of questions 3 years 5 months ago #97118

  • gdybxxf91f
  • gdybxxf91f's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 10
  • Karma: 0
((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 administrator has disabled public write access.

Condition for a whole group of questions 3 years 5 months ago #97122

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6566
  • Thank you received: 1477
  • Karma: 578
It looks like you only want "A6" and "A7" to work if P025 == "Y".

If so, the equation would be:
(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 administrator has disabled public write access.
The following user(s) said Thank You: gdybxxf91f
Time to create page: 0.298 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form