- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Piping 'Other' option/category from multiple choice using array filter
- gwiesner
- Topic Author
- Offline
- New Member
Less
More
12 years 1 month ago #74468
by gwiesner
Piping 'Other' option/category from multiple choice using array filter was created by gwiesner
Hi All,
Just wondering if it is possible pipe the 'Other' category from a multiple choice into an array using the arry filter. Ideally I would like to pipe the specified text, but even the broad category of 'Other' would suffice.
I am using LimeService.
Thanks.
Glen
Just wondering if it is possible pipe the 'Other' category from a multiple choice into an array using the arry filter. Ideally I would like to pipe the specified text, but even the broad category of 'Other' would suffice.
I am using LimeService.
Thanks.
Glen
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
12 years 1 month ago #74474
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Piping 'Other' option/category from multiple choice using array filter
To my knowledge that was something that wasn't implemented at the 1.91 branch yet.
Limesurvey 1.92 (RC4 was just released) uses the Expression Manager for this and I saw a working example at the forums which showed how to pipe the "other" text.
Limesurvey 1.92 (RC4 was just released) uses the Expression Manager for this and I saw a working example at the forums which showed how to pipe the "other" text.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The following user(s) said Thank You: gwiesner
The topic has been locked.
- amoeba
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
12 years 1 month ago #75173
by amoeba
Replied by amoeba on topic Piping 'Other' option/category from multiple choice using array filter
Hi,
I also tried to do this, but I cannot find the solution. Pls Help.
Thanks in advance.
I also tried to do this, but I cannot find the solution. Pls Help.
Thanks in advance.
The topic has been locked.
- TMSWhite
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 84
- Thank you received: 21
12 years 1 month ago #75186
by TMSWhite
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
Replied by TMSWhite on topic Piping 'Other' option/category from multiple choice using array filter
There is a working example on the 1.92 demo site
here
.
You can login as admin and show its logic file to see how the piping works.
You can login as admin and show its logic file to see how the piping works.
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
- Expression Manager (EM):
Documentation
|
Sample Surveys
|
How Tos
|
Show Logic File
|
Upgrading to 1.92+ - Excel Style for Survey Structure Import/Export
The following user(s) said Thank You: gwiesner, amoeba
The topic has been locked.
- gwiesner
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
12 years 1 month ago #75187
by gwiesner
Replied by gwiesner on topic Piping 'Other' option/category from multiple choice using array filter
Looks great. Are there plans to upgrade LimeService (v1.91+) to 1.92 in the near future?
Cheers.
Cheers.
The topic has been locked.
- amoeba
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
12 years 1 month ago #75190
by amoeba
Replied by amoeba on topic Piping 'Other' option/category from multiple choice using array filter
Thanks a lot! It solved my problem.
Experimenting with javascript and the jsName attribute I have got "<span id='LEMtailor_Q_21_30'>java87887X14X211</span>" instead of 'java87887X14X211'. Should I report it in bugtracker or I made a mistake?
Cheers
Experimenting with javascript and the jsName attribute I have got "<span id='LEMtailor_Q_21_30'>java87887X14X211</span>" instead of 'java87887X14X211'. Should I report it in bugtracker or I made a mistake?
Cheers
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
12 years 1 month ago #75219
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Piping 'Other' option/category from multiple choice using array filter
Limesurvey version 1.92 will be available at LimeService once it is fully tested and runs stable. This might take some more weeks.gwiesner wrote: Looks great. Are there plans to upgrade LimeService (v1.91+) to 1.92 in the near future?
Cheers.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- TMSWhite
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 84
- Thank you received: 21
12 years 1 month ago #75287
by TMSWhite
No, that isn't a bug. That code is how EM supports dynamic substitution on the same page. Perhaps you were testing the demo listed below, selected the Other option, and saw the message asking why you liked {Q1_other} best. The reason it didn't show the fully substituted value is that EM would have had to do recursive substitution within a page, which it can't do. However, if does do recursive substitution between pages, so if you want to use the Other value on a different page, you will see the entered value for Other was you would expect.
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
Replied by TMSWhite on topic Piping 'Other' option/category from multiple choice using array filter
amoeba wrote: Thanks a lot! It solved my problem.
Experimenting with javascript and the jsName attribute I have got "<span id='LEMtailor_Q_21_30'>java87887X14X211</span>" instead of 'java87887X14X211'. Should I report it in bugtracker or I made a mistake?
Cheers
No, that isn't a bug. That code is how EM supports dynamic substitution on the same page. Perhaps you were testing the demo listed below, selected the Other option, and saw the message asking why you liked {Q1_other} best. The reason it didn't show the fully substituted value is that EM would have had to do recursive substitution within a page, which it can't do. However, if does do recursive substitution between pages, so if you want to use the Other value on a different page, you will see the entered value for Other was you would expect.
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
- Expression Manager (EM):
Documentation
|
Sample Surveys
|
How Tos
|
Show Logic File
|
Upgrading to 1.92+ - Excel Style for Survey Structure Import/Export
The following user(s) said Thank You: amoeba
The topic has been locked.
- gwiesner
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
11 years 7 months ago #84224
by gwiesner
Replied by gwiesner on topic Piping 'Other' option/category from multiple choice using array filter
Just upgraded to 1.92 and trying to solve this piping problem. I now have the issue that 'Other-specify' is always piped to subsequent array question and it doesn' seem to be a "checkable/selectable" item in the multi-choice question.
I am but a simple man. To me Java is an island in Indonesia..... Therfore if anyone can help me pipe the 'Other-specify' text into the following question (when it is selected!) I would be most appreciative. I have attached a screen capture of the relevant questions.
Many thanks.
I am but a simple man. To me Java is an island in Indonesia..... Therfore if anyone can help me pipe the 'Other-specify' text into the following question (when it is selected!) I would be most appreciative. I have attached a screen capture of the relevant questions.
Many thanks.
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
11 years 7 months ago #84238
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 Piping 'Other' option/category from multiple choice using array filter
You can use an answer code "other" for the question 2 "Other" option and an expression to pipe in the value as in the illustration below (where my Q1 code is multiOpt_p1_1). This will make both the filter and the piping work.
So the result is:
Here's a working example:
So the result is:
Here's a working example:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The topic has been locked.
- TMSWhite
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 84
- Thank you received: 21
11 years 7 months ago #84240
by TMSWhite
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
Replied by TMSWhite on topic Piping 'Other' option/category from multiple choice using array filter
Personally, I'd vote to going back to the way 1.91+ worked. I have plenty of surveys where users want to check the other check-box, but do not be forced to specify any details. The changed implementation does not allow that.
The that caused the current behavior was made by Denis about a month ago.
The that caused the current behavior was made by Denis about a month ago.
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
- Expression Manager (EM):
Documentation
|
Sample Surveys
|
How Tos
|
Show Logic File
|
Upgrading to 1.92+ - Excel Style for Survey Structure Import/Export
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
11 years 7 months ago #84244
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 Piping 'Other' option/category from multiple choice using array filter
Yeah, or maybe have an option "Hide Other checkbox".
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.