- Posts: 15
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
fill ranking array with answers from previous question
- janwillem64
- Topic Author
- Offline
- New Member
Less
More
12 years 11 months ago #59432
by janwillem64
fill ranking array with answers from previous question was created by janwillem64
Hello,
I'm having a ranking question and I'm trying to build an array list or label set from answers from a previous question (label set).
Is this possible in LimeSurvey?
Jan Willem de Lange
I'm having a ranking question and I'm trying to build an array list or label set from answers from a previous question (label set).
Is this possible in LimeSurvey?
Jan Willem de Lange
The topic has been locked.
- lsexton
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
12 years 11 months ago #59434
by lsexton
Replied by lsexton on topic fill ranking array with answers from previous question
Hi there,
I'm trying to do something similar, where the list of the items to rank is to be built from a 5-point scale array, but only if they mention punches 1-4 for any of the items in the array (i.e. if they mention punch 5, the option shouldn't exist in the ranking question).
Is there a simple workaround for this? Thanks for the help!
Luke
I'm trying to do something similar, where the list of the items to rank is to be built from a 5-point scale array, but only if they mention punches 1-4 for any of the items in the array (i.e. if they mention punch 5, the option shouldn't exist in the ranking question).
Is there a simple workaround for this? Thanks for the help!
Luke
The topic has been locked.
- lsexton
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
12 years 11 months ago #59455
by lsexton
Replied by lsexton on topic fill ranking array with answers from previous question
Hi again,
Let me provide some additional information:
Limesurvey version is 1.86
I am trying to build the list of items to rank based on the respondents answer to the previous question.
The previous question is an array (flexible labels) type, using a 5-point scale.
The question I'm trying to modify is a Ranking type question. I only want to respondent able to rank those that they rated 1-4 in the previous question, and to not display those they rated 5.
I have set-up the javascript requirements and have javascript working on some previous questions (to hide responses based on selections etc).
Any help will be greatly appreciated!
Thanks!
Let me provide some additional information:
Limesurvey version is 1.86
I am trying to build the list of items to rank based on the respondents answer to the previous question.
The previous question is an array (flexible labels) type, using a 5-point scale.
The question I'm trying to modify is a Ranking type question. I only want to respondent able to rank those that they rated 1-4 in the previous question, and to not display those they rated 5.
I have set-up the javascript requirements and have javascript working on some previous questions (to hide responses based on selections etc).
Any help will be greatly appreciated!
Thanks!
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
12 years 11 months ago #59487
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 fill ranking array with answers from previous question
Jan, I have created
a workaround to filter a ranking question
that may meet your requirements. The workaround can be applied to filter and ranking on the same page or on separate pages as seen in
this demo
.
Luke, we can use the two-page method for your problem. We just need to place your array on page 1 with the filter question and then add a small script to auto-check the appropriate options of the filter question and hide it. I'll get back to you with a script.
Luke, we can use the two-page method for your problem. We just need to place your array on page 1 with the filter question and then add a small script to auto-check the appropriate options of the filter question and hide it. I'll get back to you with a script.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- janwillem64
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
12 years 11 months ago #59489
by janwillem64
Replied by janwillem64 on topic fill ranking array with answers from previous question
Hello Tony,
Looks good!! The ranking I'm building is based on a matrix:
- item 1: yes, no, sometimes
- item 2: yes, no, sometimes
Only the yes and the sometimes items should appear in the ranking. I'm gone give it a try with your script.
Many thanks,
Jan Willem
Looks good!! The ranking I'm building is based on a matrix:
- item 1: yes, no, sometimes
- item 2: yes, no, sometimes
Only the yes and the sometimes items should appear in the ranking. I'm gone give it a try with your script.
Many thanks,
Jan Willem
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
12 years 11 months ago #59491
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 fill ranking array with answers from previous question
Ah, that sounds exactly like what Luke is trying - "filter a ranking question by specific inputs in an array".
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- lsexton
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
12 years 11 months ago #59504
by lsexton
Replied by lsexton on topic fill ranking array with answers from previous question
Thanks for the help Tony - look forward to seeing the script
Cheers,
Luke
Cheers,
Luke
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
12 years 11 months ago #59505
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 fill ranking array with answers from previous question
Luke, I can't remember - does array filter work with two multiple-options in 1.86? In other words, can one multiple-options filter another?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- lsexton
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
12 years 11 months ago #59506
by lsexton
Replied by lsexton on topic fill ranking array with answers from previous question
Not sure Tony - I'll set something up and test it.
Cheers,
Luke
Cheers,
Luke
The topic has been locked.
- lsexton
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
12 years 11 months ago #59507
by lsexton
Replied by lsexton on topic fill ranking array with answers from previous question
Hi Tony, array_filter doesn't appear as an option under Question Attributes for a multiple options question type in 1.86.
Cheers,
Luke
Cheers,
Luke
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
12 years 11 months ago #59508
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 fill ranking array with answers from previous question
Hmm...bummer...is updating to 1.90 an option?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- lsexton
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
12 years 11 months ago #59509
by lsexton
Replied by lsexton on topic fill ranking array with answers from previous question
Hi Tony - not with this survey unfortunately ...
The topic has been locked.