Welcome to the LimeSurvey Community Forum

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

show options based on answer previous question

  • pieter1970
  • pieter1970's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #140938 by pieter1970
Dear forum members,

My questions is about showing options based on the answer of prevous question.

q1. How long do you spent reading newspapers a day?
() no time at all
() less than 30 minutes
() between 30 minutes and less than 60 minutes
() between 60 minutes and less than 75 minutes
() between 75 minutes and 90 minutes
() 90 minutes or more

q2. How lon do you spent reading newspapers about politics a day?
() no time at all
() less than 30 minutes
() between 30 minutes and less than 60 minutes
() between 60 minutes and less than 75 minutes
() between 75 minutes and 90 minutes
() 90 minutes or more

The options shown on q2 are dependent of the anwer of q1 of course.
For example if the answer on q1 is between 60 minutes and less than 75 minutes, than only the first 4 options of q2 should be shown.

Any help will be highly appreciated!
Pieter
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #140977 by tpartner
Replied by tpartner on topic show options based on answer previous question
There is currently no way to apply relevance to single-choice answer so the simplest solution would be to create several versions of Q2 and show the appropriate one via relevance.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #140996 by Joffm
Hi, pieter,
you could try to use validation in the second question.
Something like ((q1==5)) and (q2<=5)) or ((q1==4) and (q2<=4)) or ...
It's not the best solution - as Tony said, relevance is not appliable to songle-choice questions - but you can tell the respondent (in the validation text) that he ;)
  • is not able to read a question text carefully
  • is too stupid to answer that question
  • is probably a "happy clicker" (somebody who just clicks whatever he wants)
  • is answering wrong by intention
Kind regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #141001 by tpartner
Replied by tpartner on topic show options based on answer previous question

...you could try to use validation in the second question.

I don't believe there is question validation for list-radio or list-dropdown questions. ;)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
7 years 6 months ago #141002 by jelo

tpartner wrote: There is currently no way to apply relevance to single-choice answer

Is that recognized as a missing feature?
I remember that the workaround was to use multiple-choice with max. answer of one. That way relevance for subquestions is available.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #141003 by tpartner
Replied by tpartner on topic show options based on answer previous question

Is that recognized as a missing feature?

Yes, in my opinion, it is required and I believe it is to be incorporated in the future.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose