Welcome to the LimeSurvey Community Forum

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

Q2 with chosen question after Q1

More
9 years 9 months ago - 9 years 9 months ago #128657 by CashMaker
I'm working off my first Survey and I have problem witch I can't solve.

For example

Q1 - drop down list or radio button (only one answer is possible)

You chose Q1

And the display Q2 - but I would like to narrow the possible answer from ex. drop down list to 2 or 3 possible answers

Q1 - (four answers) : A, B, C, D
Q2 - (eight answers): a, b, c, d, e, f, g, h.
if you chose Q1-B you can answer (see) Q2-c or Q2-d

Thank you any help.
Last edit: 9 years 9 months ago by CashMaker.
The topic has been locked.
More
9 years 9 months ago #128660 by holch
Depends on your version of limesurvey. I think from ls 2.05 onwards you can use relevance equations with subquestions/answer options and this way you can show/hide certain answer options based on answers to previous questions quite easily.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
9 years 9 months ago #128668 by tpartner
I believe relevance is only available for sub-questions. In this case, where there are only four answers in Q1, I would create 4 versions of Q2 and display those with relevance.

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: DenisChenu
The topic has been locked.
More
9 years 9 months ago #128671 by holch
Ohh, i didnt know that. Weird, why would we have this great feature for matrix and multiple answer questions, but not for list questions????

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
9 years 9 months ago #128706 by DenisChenu
Relevance for sub question is NOT the same than answer.

With subquestion : easy forcing QCODE_SQ01 to be null
With answer : QCODE must be allowed.

And actually we don't validate answer code (you can hack HTML to set an answer to anythink you want)

See bugs.limesurvey.org/view.php?id=9774

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
9 years 9 months ago #128710 by holch

DenisChenu wrote: Relevance for sub question is NOT the same than answer.


OK, but that doesn't mean it wouldn't be great to have relevance for answer options. Because at the end of the day the subquestions from a multiple answer question and the answers of a single choice question are pretty similar. For me they are both answers, actually.

We can discuss the academic differences between the two, but I don't think it is really relevant. I just wanted to say that it would be great if we could have the relevance equation also for single choice questions.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
9 years 9 months ago #128754 by DenisChenu
Hi,

holch wrote: OK, but that doesn't mean it wouldn't be great to have relevance for answer options. Because at the end of the day the subquestions from a multiple answer question and the answers of a single choice question are pretty similar. For me they are both answers, actually.

Yes, i think too it can be interesting, and more : really control answer in PHP.
But we must rewrite completely filter for answer and PHP control for answer. This explain why it not exist actually.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose