Welcome to the LimeSurvey Community Forum

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

Answer options based on previous question

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #160389 by Joffm
Replied by Joffm on topic Answer options based on previous question
Hello,

in this scenario you do not need any javascript. In this case it is nonsense.

Remember: This thread is about filtering single -> single. (single has no subquestion relevance)

Just use subquestion relevance in Q2 and array filter in Q3.
Q2:

Q3:



well, it's German, but you see.
And I changed these IMHO silly "lettercodes (A1, C3)" to numerical codes.

And remember: To use "array filter" the codes of Q2 and Q3 have to be exactly equal.

See example:

File Attachment:

File Name: limesurvey...3274.lss
File Size:21 KB


Best regards
Joffm

And, the best is to read the manual about question types and about "Adding answers and subquestions"

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: AdinaNica1
The topic has been locked.
More
6 years 5 months ago #160391 by AdinaNica1
Replied by AdinaNica1 on topic Answer options based on previous question
This is the initial option I used, I can't remember why it did't work!
I will try once again! Many many thanks!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #160394 by Joffm
Replied by Joffm on topic Answer options based on previous question
Hi,
instead of saying "doesn't work" better you send a sample of your survey (*.lss)
so that we can see.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
6 years 5 months ago #160412 by AdinaNica1
Replied by AdinaNica1 on topic Answer options based on previous question
Hey, it's working now :) :)
Wonderful! Thanks a lot!
Adina
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose