- Posts: 14
- Thank you received: 0
- Forum
- English support forums
- Can I do this with LimeSurvey?
- Carry over "Other: input" across multiple questions using Array filter
Carry over "Other: input" across multiple questions using Array filter
4 months 2 weeks ago #223490
by JSamarov
Your LimeSurvey version:
Version 5.2.7
Own server or LimeSurvey hosting: LimeSurvey Cloud
==================
Hi Community
Own server or LimeSurvey hosting: LimeSurvey Cloud
==================
Hi Community

- I have 3 Multiple choice questions: Q1, Q2 and Q3
- Q1 allows Other and input.
- Q2 is an Array filter: Q1 (including Other by means of {Q1_other} and Relevance !is_empty(Q1_other.NAOK)
- Q3 is an Array filter: Q2 , which also needs to re-populate Other mentioned in Q2 if selected again.
Attachments:
Please Log in to join the conversation.
4 months 2 weeks ago #223493
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Carry over "Other: input" across multiple questions using Array filter
Hi,
unfortunately you did not show your setup of the questions.
I do not see any issue
with this setting of the subquestions of Q2
without any relevance equation
and exactly the same in Q3
Joffm
unfortunately you did not show your setup of the questions.
I do not see any issue
with this setting of the subquestions of Q2
without any relevance equation
and exactly the same in Q3
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Please Log in to join the conversation.
4 months 2 weeks ago - 4 months 2 weeks ago #223496
by JSamarov
Replied by JSamarov on topic Carry over "Other: input" across multiple questions using Array filter
Hi Joffm, thanks for looking into this.
It does work if Q3's "other" is filtered on Q1.
Yet I'm trying to carry "other" over from Q2.
Hope it make sense?
In other words, if Q1's "other" is ticked, then it's shown in Q2. If it's ticked again in Q2 then it's shown in Q3, otherwise it's not shown in Q3.
In your example above, in theory, Q3 needs to have {Q2_other}. Though, clearly it doesn't work that way hence the post
Thanks again!!
It does work if Q3's "other" is filtered on Q1.
Yet I'm trying to carry "other" over from Q2.
Hope it make sense?
In other words, if Q1's "other" is ticked, then it's shown in Q2. If it's ticked again in Q2 then it's shown in Q3, otherwise it's not shown in Q3.
In your example above, in theory, Q3 needs to have {Q2_other}. Though, clearly it doesn't work that way hence the post

Thanks again!!
Last edit: 4 months 2 weeks ago by JSamarov.
Please Log in to join the conversation.
4 months 2 weeks ago #223499
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Carry over "Other: input" across multiple questions using Array filter
I guess you need to create the subquestion relevance for this item to show in Q3 based on Q2, but you need to pipe the text of this response from Q1.
If you want further help, please attach a LSS file with only the relevant questions (copy your survey, delete everything that isn't necessary for the problem, export it and upload it here).
If you want further help, please attach a LSS file with only the relevant questions (copy your survey, delete everything that isn't necessary for the problem, export it and upload it here).
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.
4 months 2 weeks ago - 4 months 2 weeks ago #223502
by JSamarov
Replied by JSamarov on topic Carry over "Other: input" across multiple questions using Array filter
Hi holch )
Please see attached.
In the original design there's also Q4 that needs to pull "Other" from Q3 but it's the same principle.
So I've left it in.
Thank you very much for looking into this!
Jay
Please see attached.
In the original design there's also Q4 that needs to pull "Other" from Q3 but it's the same principle.
So I've left it in.
Thank you very much for looking into this!
Jay
Last edit: 4 months 2 weeks ago by JSamarov.
Please Log in to join the conversation.
4 months 2 weeks ago #223506
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Carry over "Other: input" across multiple questions using Array filter
In Q2 you have no "other field" you can reference to. It's "Q2_SQ007. If you activate the other option in Q2 you would have an additional other field. That would be Q2_other.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: JSamarov
Please Log in to join the conversation.
4 months 2 weeks ago #223511
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Carry over "Other: input" across multiple questions using Array filter
It seems to me that you should reference {Q1_other} in all other questions as this is the only place to enter text.
Additionally, you don't need the sub-question relevance in Q3 or Q4 - the simple array-filter will do.
Sample survey attached:
Additionally, you don't need the sub-question relevance in Q3 or Q4 - the simple array-filter will do.
Sample survey attached:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: JSamarov
Please Log in to join the conversation.
4 months 2 weeks ago #223512
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Carry over "Other: input" across multiple questions using Array filter
Your problem is, as I described before, that you are referring in Q3 to {Q2_other}. There is no "other" in Q2. So Limesurvey can't find it, of course.
It is actually SQ007. So you would need to refer to it as {Q2_SQ007}. However, for piping in the text, you most probably need to use {Q1_other} for all of them, because you can't pipe an already piped text into another question, if you know what I mean?
You also can't use this relevance equation in Q3, because as I said, there is no "other" option in Q2:
Also you need to address it completely different, as this is now a normal subquestion item of a multiple answer question.
You'll need something like:
It is actually SQ007. So you would need to refer to it as {Q2_SQ007}. However, for piping in the text, you most probably need to use {Q1_other} for all of them, because you can't pipe an already piped text into another question, if you know what I mean?
You also can't use this relevance equation in Q3, because as I said, there is no "other" option in Q2:
!is_empty(Q2_other.NAOK)
Also you need to address it completely different, as this is now a normal subquestion item of a multiple answer question.
You'll need something like:
Q2_SQ007=="Y"
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: JSamarov
Please Log in to join the conversation.
4 months 2 weeks ago - 4 months 2 weeks ago #223515
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Carry over "Other: input" across multiple questions using Array filter
OK, so I was too slow, Tpartner was quicker. But here also my LSS, I kept the subquestion relevance equations but corrected them to what you need.
There were several problems:
- There is no Q2_other or Q3_other, but only Q2_SQ007 and Q3_SQ007. In Q2, Q3 and Q4 this is a "normal" subquestion, no other field anymore, so you can't access it via {questioncode_other}, but need to use {questioncode_subquestioncode}
Similar to that, the relevance equation with "!is_empty" won't work, for the same reason. You need to check if the specific subquestion has been checked with something like {questioncode_subquestioncode=="Y"}. Actually, thinking about it, !is_empty probably will work too, but you can't reference it with "questioncode_other". This still stands.
There were several problems:
- There is no Q2_other or Q3_other, but only Q2_SQ007 and Q3_SQ007. In Q2, Q3 and Q4 this is a "normal" subquestion, no other field anymore, so you can't access it via {questioncode_other}, but need to use {questioncode_subquestioncode}
Similar to that, the relevance equation with "!is_empty" won't work, for the same reason. You need to check if the specific subquestion has been checked with something like {questioncode_subquestioncode=="Y"}. Actually, thinking about it, !is_empty probably will work too, but you can't reference it with "questioncode_other". This still stands.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Last edit: 4 months 2 weeks ago by holch.
The following user(s) said Thank You: JSamarov
Please Log in to join the conversation.
4 months 2 weeks ago #223520
by JSamarov
Replied by JSamarov on topic Carry over "Other: input" across multiple questions using Array filter
Thank you so much, guys!!
This community is simply incredible.
I've followed your guidance and got it working!
Attached is the final working version - for posterity
LimeSurvey Cloud
Version 5.2.7
This community is simply incredible.
I've followed your guidance and got it working!

Attached is the final working version - for posterity

LimeSurvey Cloud
Version 5.2.7
Please Log in to join the conversation.