Piping 'other' answers from two questions

More
4 months 3 weeks ago #181006 by Florian_Hannover
Hi everyone,

I have created two questions, each containing 'other' fields.
In a 3rd question, I would like to pipe in the items selected in the first two questions.

Unfortunately, as the other questions have identical item numbers 'other' I can not use both other fields in this question.
But as I understand, I can not rename the other item name.

Do you have any ideas how to solve this?

Thank you very much,
Florian

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
4 months 3 weeks ago - 4 months 3 weeks ago #181016 by Joffm
Hi,

you pipe them by adding {Q1_other} resp. {Q2_other}



Though you didn't mention which question types you are using.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 4 months 3 weeks ago by Joffm.
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago - 4 months 3 weeks ago #181023 by Florian_Hannover
Hi Joffm,

thank you very much for your reply. I am using multiple choice for the first two questions and a single choice for the 3rd one.

It's not only about piping the text from the other fields, but it's also about using array filters to display those items only if they have been filled.

So in the 3rd question only those items ticked in the first two questions should be displayed. Unfortunately, the item numbers have to be identical in all questions. Hope you understand what I mean.

Best,
Florian
Attachments:
Last edit: 4 months 3 weeks ago by Florian_Hannover.

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago - 4 months 3 weeks ago #181025 by Joffm
Hi, here is a solution.

File Attachment:

File Name: limesurvey...8821.lss
File Size:36 KB


Item codes can be identical. Just adapt the equation and M1 resp Q3.

Otherwise send your *.lss

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 4 months 3 weeks ago by Joffm.
The following user(s) said Thank You: Florian_Hannover

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #181028 by Florian_Hannover
Hi Joffm,

that is truly exactly what I was looking for!
Using a hidden question to fill the array filter is great. I didn't have this in mind, but that works perfectly.

But just to make it sure: it is not possible to manage this requirement without using the hidden equation 'question'? Correct?

Thank you very much,
Florian

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #181031 by Joffm
Hi, Florian,

I don't know.

I like this way, especially because there is no subquestion relevance in single punch questions.
And we see the demand for a filtering single -> single many times here in the forum.

All the best
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Florian_Hannover

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago - 4 months 3 weeks ago #181038 by Florian_Hannover
Hi Joffm,

that is true.
Unfortunately, when I adapt my questionnaire to your structure, I struggle.

The Q60 equation does not work. It should pipe in the item selected in Q50 (or Q41/Q42). But I only get the equestion displayed.


Attached the survey structure. Q41+Q42 includes the open question. The questions Q45XX ask for the most detailed drivers. Q50 asks for the most important driver.


Thank you very much,
Florian
Attachments:
Last edit: 4 months 3 weeks ago by Florian_Hannover.

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #181081 by Florian_Hannover
I managed to solve this issue. Now everything works perfectly fine.

Thank you very much!

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #181093 by Joffm
Hi, Florian,

just a few other option to display your "problem" question.

1. Filter: Q41 and Q42


2. Described here: https://manual.limesurvey.org/Workarounds:_Manipulating_a_survey_at_runtime_using_Javascript#Display_secondary_options_in_a_.22Multiple_options.22_question

Clicking displays a second level

Attachment not found



Just to show

Joffm


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

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!