Welcome to the LimeSurvey Community Forum

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

Filter answer from previous answer using Relevance equation in subquestions

  • CharlieTang
  • CharlieTang's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #191744 by CharlieTang
Hello,

I would like show the options from previous selected answer in a few questions.
But the relevance equation in subquestions is not working.

QQ1 (List (radio): 1,2,3,4,5 selected 1
QQ2 (Multiple choice): 1,2,3,4,5 selected 3
QQ3 (Multiple choice): 1,2,3,4,5 selected 5

I would like code 1,3,5 is shown in QQ4 but show code 5 only.

I'm using the Limesurvey version 3.20.2.
Thank you in advance!
Charlie
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #191745 by tpartner

I would like code 1,3,5 is shown in QQ4 but show code 5 only.

This is contradictory. How can you show 1,3,5 and only show 5?

Can you explain more and attach a small sample survey (.lss file) containing only the relevant questions?

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: CharlieTang
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #191760 by DenisChenu

tpartner wrote:

I would like code 1,3,5 is shown in QQ4 but show code 5 only.

This is contradictory. How can you show 1,3,5 and only show 5?

I think he want 1,3,5 but get only 5.

@CharlieTang : please explain what you already try see stackoverflow.com/help/how-to-ask


Maybe you can true for SQ1 relevance , adapt for other

QQ1.NAOK =="1" or !is_empty(QQ2_SQ1.NAOK) or !is_empty(QQ3_SQ1.NAOK)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: CharlieTang
The topic has been locked.
  • CharlieTang
  • CharlieTang's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #191776 by CharlieTang
It's work! Thank you very much!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose