Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: condition for next question

condition for next question 3 years 8 months ago #54798

  • chupanibre
  • chupanibre's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
Hi limesurvey experts

I want to set the following condition: Question A has 4 possible answers, Question B should only be displayed when the subject choses options 2, 3 or 4, but not if he choses option 1. I would like question B to appear under question A if the subjects checks one of the right answers, not before and not on a different page... Is this possible?

Thanks!
Chupa
The administrator has disabled public write access.

Re: condition for next question 3 years 8 months ago #54801

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4193
  • Thank you received: 789
  • Karma: 359
You can use scenarios to achieve ORed conditions.

You would end up with something like:

Untitled-1_2011-01-06.png
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: condition for next question 3 years 8 months ago #54804

  • chupanibre
  • chupanibre's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
thank you for your help!

I tried to implement this, unfortunately there is still the problem that the conditions can only be combined using the logical operator "or", since both conditions come from the same tested value. This means that I end up creating conditions where one of the 2 elements is always true and therefore question nbr. 2 is displayed....

Is there any way to work around this?
The administrator has disabled public write access.

Re: condition for next question 3 years 8 months ago #54807

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4193
  • Thank you received: 789
  • Karma: 359
I'm afraid I don't understand. The above conditions will show q2 only if:

(q1-2 OR q1-3 OR q1-4) == checked AND q1-1 == unchecked
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: condition for next question 3 years 8 months ago #54809

  • chupanibre
  • chupanibre's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
As you can see below, my condition is : (q1-2 OR q1-3 OR q1-4) == checked OR q1-1 == unchecked


condition.JPG


edit: it is the german version, "oder" means "or"
Last Edit: 3 years 8 months ago by chupanibre.
The administrator has disabled public write access.

Re: condition for next question 3 years 8 months ago #54812

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4193
  • Thank you received: 789
  • Karma: 359
Attach a sample survey with the 2 questions and I'll test it.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 3 years 8 months ago by tpartner.
The administrator has disabled public write access.

Re: condition for next question 3 years 8 months ago #54823

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5325
  • Thank you received: 296
  • Karma: 249
You have to add 2 conditions to this question, the first one shiuld read
"show q2 only if:
(q1-2 OR q1-3 OR q1-4)"

...and the second one should deal with "AND q1-1 == unchecked"

Do NOT use scenarios for the last condition.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: condition for next question 3 years 8 months ago #54832

  • chupanibre
  • chupanibre's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
I understand what you mean, the problem is that I cannot define any "AND" conditions.
I have 2 questions, both are arrays with 4 options. I want to hide question 2 and make it appear if the subject selects options 1,2 or 3 in question 1. I tried to combine the conditions as you advised me to, which leads to the same result: both questions are displayed simultaneously, question 2 disappears if options 1,2 or 3 are checked....

@Mazi: I tried to implement your suggestion, but I was not able to add the second condition "AND q1-1 == unchecked" without making it a scenario and without the "or" attribute.

@tpartner: I exported the survey in question and attached it (I take it this was what you meant by asking for a sample survey?)

File Attachment:

File Name: limesurvey_survey_78284.lss
File Size: 28 KB
The administrator has disabled public write access.

Re: condition for next question 3 years 8 months ago #54840

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5325
  • Thank you received: 296
  • Karma: 249
Maybe we really ran into some limitation here. I'll try to ping our condition expert.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
The following user(s) said Thank You: chupanibre

Re: condition for next question 3 years 8 months ago #54849

  • chupanibre
  • chupanibre's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
Thanks!

Wouldn´t it be possible to do this using java-script?
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.129 seconds
Donation Image