- Posts: 14
- Thank you received: 0
- Forum
- English support forums
- Can I do this with LimeSurvey?
- Piping Ticked item from "Multiple question types in array" to ranking
Piping Ticked item from "Multiple question types in array" to ranking
I am a LS newbie. I have no problem following "Multiple question types in array" code show here and create questions like follow. I have 2 different question groups for 2 different categories.
However, my questions is I want to use the "Ticked" items from both question groups into ranking system (only rank top 5 from x ticked items from both groups). Now I am stuck.
Can someone please help?
Your help is much appreciated.
Regards
Tze
Please Log in or Create an account to join the conversation.
ls2_array_filter_tests.lss
Version 1.92 supports the same degree of filtering with one exception - ranking questions. Because of the way the JavaScript is implemented in 1.92 for ranking, it is not possible to filter it consistently across all browsers, so using array_filter within ranking questions is disabled in 1.92.
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
Please Log in or Create an account to join the conversation.
Thanks for you prompt reply. sorry i forgot to mention that i am using LS Version 1.92+ Build 120405. I dont have admin right on LS. Furthermore, EM is disable due to unknown reason.
Can you please re-attach the Array Filter test .lss file again?
Regards
Tze
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
However, it does work "out of the box" in version 2.0 using array_filter.
If you want to patch your 1.92installation to have it work there (for the few supported browsers), un-comment line 1102 in /classes/expressions/LimeExpressionManger.php. It is the line:
// case 'R': //Ranking
within this block of code:
case 'P': //Multiple choice with comments checkbox + text
case 'K': //MULTIPLE NUMERICAL QUESTION
case 'Q': //MULTIPLE SHORT TEXT
// case 'R': //Ranking
// if ($this->sgqaNaming)
// {
foreach ($cascadedAF as $_caf)
{
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
Please Log in or Create an account to join the conversation.
- Posts: 6742
- Karma: 601
- Thank you received: 1811
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in or Create an account to join the conversation.
I have not performed any programming for a long long time, since basic lauguage (and I don’t know how to program in LS). However, based on the javascript syntax display in all workarounds, in logical thinking, I come up with this conceptual logic as follow. conceptually I believe it should work. However, I need help with this, can you please help?
Regards
Tze
Please Log in or Create an account to join the conversation.
- Posts: 6742
- Karma: 601
- Thank you received: 1811
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in or Create an account to join the conversation.
Thank you very much for you help. Do you have the Demo code (lss "FOR FILTER AND RANKING QUESTIONS ON SEPARATE PAGES") that i can try?
Another thing that I would highlight is that I am NOT the LS admin and I cant change any setting on LS. I cant even use LS EM due to unknown reason.
Regards
Tze
Please Log in or Create an account to join the conversation.
- Posts: 6742
- Karma: 601
- Thank you received: 1811
You can find the code in the workaround - docs.limesurvey.org/Workarounds%3A+Manip...ith_Multiple-OptionsDo you have the Demo code
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in or Create an account to join the conversation.
Once again, thank you very much for your prompt reply. I did have a close inspection on the code that you have suggested, however, it seems that this workaround only work on one question group (whereby I will need to pipe and combine two question groups). How do I combine ticked items from both Question Groups into the same ranking question?
By the way, do you have the LS exported structure file (.lss) for "FOR FILTER AND RANKING QUESTIONS ON SEPARATE PAGES"? I might be able tweak it if I can have a bigger picture.
Regards
Tze
Please Log in or Create an account to join the conversation.
- Posts: 6742
- Karma: 601
- Thank you received: 1811
Please see my previous comments about using several question codes in the array filter setting.How do I combine ticked items from both Question Groups into the same ranking question?
Attached are the Demo survey and template.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.