Welcome to the LimeSurvey Community Forum

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

How to Piping the selected option in a check box questions

  • rajkumar_dms
  • rajkumar_dms's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 weeks 5 days ago #262917 by rajkumar_dms
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.5
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hello Team,
I would like the piping the the selected option in the multiple choice question to the another question

I have a question Q1 having option A,B,C,D,E,F,G,H and i selected the A,C,D,G,H and these selected option are piping to the next question   

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 5 days ago #262938 by holch
multi punch questions do not have answer options, but subquestions.

So for each answer option / subquestion you need to check if it has been checked or not, e.g. via Q1_A=="Y".

Depending on your construct (unfortunately your explanation isn't very clear) you could also use the array filter.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • rajkumar_dms
  • rajkumar_dms's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 weeks 5 days ago #262942 by rajkumar_dms
Hi holch,
I am talking not about that
I would like to piping the selected answer text from multiple choice to any type of question text (like we use {Q1})
Hope you understand 

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 5 days ago - 2 weeks 5 days ago #262943 by holch
That is the problem when you don't explain things in detail.

So remember that multi punch questions don't have answer options but subquestions?

This is why you have to call the "question text" (which in this case is actually the subquestion text.

{Q1_A.question}

By the way, with {Q1} does pipe the answer code, no the answer text. That would be {Q1.shown} for a single punch question.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 2 weeks 5 days ago by holch.

Please Log in to join the conversation.

  • rajkumar_dms
  • rajkumar_dms's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 weeks 5 days ago #262944 by rajkumar_dms
For multi punch question how to show the selected subquestion text in the next question

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 5 days ago #262945 by holch
Come on, just combine my first and my second answer, use an if clause and it should work.

First you need to check if the subquestion has been checked, then you show the text or you don't. Something like this:
Code:
{if(Q1_A=="Y", Q1_A.question,"")}

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 weeks 5 days ago #262946 by Joffm
If you only want to display the selected options on thhe question text, you can use the function "list(x1,x2,x3,..)"

Read the manual about "implemented functions'

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose