- Posts: 53
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Preopulate ranking question based on answers in a previous array?
- PaulMRFGR
- Topic Author
- Offline
- Senior Member
Less
More
3 years 1 month ago #213374
by PaulMRFGR
Preopulate ranking question based on answers in a previous array? was created by PaulMRFGR
I'm aware that we can probably do this through the array filter function, but I'm just trying to work out how.
We have an array question which asks respondents to rate their levels of experience with certain property developers - Have experience with / Have bought from / Have heard of / Have never heard of or used for each developer
We then want to ask them to rank the property developers which they either have experience with / have bought from / have heard of.
Any developers indicated as "never heard of or used" will be excluded options in the ranking question.
What is the best way to do this please?
Thank you.
We have an array question which asks respondents to rate their levels of experience with certain property developers - Have experience with / Have bought from / Have heard of / Have never heard of or used for each developer
We then want to ask them to rank the property developers which they either have experience with / have bought from / have heard of.
Any developers indicated as "never heard of or used" will be excluded options in the ranking question.
What is the best way to do this please?
Thank you.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 1 month ago #213382
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Preopulate ranking question based on answers in a previous array?
Hi,
I should insert a hidden multiple question that is used as array filter.
Joffm
I should insert a hidden multiple question that is used as array filter.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- PaulMRFGR
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 0
3 years 1 month ago #213395
by PaulMRFGR
Replied by PaulMRFGR on topic Preopulate ranking question based on answers in a previous array?
Thanks @Joffm,
This is really helpful. I've tried implementing it on our side but without the same luck. I've provided our .lss file - would you mind taking a look and letting me know where we're going wrong please?
Thank you!
This is really helpful. I've tried implementing it on our side but without the same luck. I've provided our .lss file - would you mind taking a look and letting me know where we're going wrong please?
Thank you!
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 1 month ago #213414
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Preopulate ranking question based on answers in a previous array?
Hi,
if in the equation there is
{M1_1=if(Q12_1!=4,"Y","")}
but you use answer option codes "A1", "A2", it is easy to understand, why it doesn't work.
Either you change the codes (always advisable to use numeric codes), or you change the equation to !="A4"
Joffm
if in the equation there is
{M1_1=if(Q12_1!=4,"Y","")}
but you use answer option codes "A1", "A2", it is easy to understand, why it doesn't work.
Either you change the codes (always advisable to use numeric codes), or you change the equation to !="A4"
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, PaulMRFGR
The topic has been locked.
- PaulMRFGR
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 0
3 years 1 month ago #213453
by PaulMRFGR
Replied by PaulMRFGR on topic Preopulate ranking question based on answers in a previous array?
Thanks Joffm. Unfortunately if we set the question as mandatory, the survey doesn't let us proceed, since it doesn't actually remove options, it just hides them, it thinks that the question hasn't been fully answered. Is there anyway round this without setting the question as not mandatory?
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 1 month ago #213459
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Preopulate ranking question based on answers in a previous array?
I do not see any issue.
Both questions are mandatory and it works.
And again the survey.
Joffm
Both questions are mandatory and it works.
And again the survey.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- PaulMRFGR
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 0
3 years 1 month ago #213462
by PaulMRFGR
Replied by PaulMRFGR on topic Preopulate ranking question based on answers in a previous array?
Thanks again Joffm but it still doesn't let me proceed unfortunately (even on the .lss file you sent).
I get this message: One or more mandatory questions have not been answered. You cannot proceed until these have been completed.
Is there a survey setting I should be aware of? Could it also be the version we're on - I think we're on an older version of 2.05+
I get this message: One or more mandatory questions have not been answered. You cannot proceed until these have been completed.
Is there a survey setting I should be aware of? Could it also be the version we're on - I think we're on an older version of 2.05+
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
3 years 1 month ago #213478
by holch
This is of course possible. But I highly doubt that anyone has still such an old version for test purposes. Well, Joffm actually might...
I highly recommend to update. Your version is several years old and hasn't received any updates and bug fixes for many years now.
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 Preopulate ranking question based on answers in a previous array?
Could it also be the version we're on - I think we're on an older version of 2.05+
This is of course possible. But I highly doubt that anyone has still such an old version for test purposes. Well, Joffm actually might...
I highly recommend to update. Your version is several years old and hasn't received any updates and bug fixes for many years now.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- PaulMRFGR
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 0
3 years 1 month ago #213494
by PaulMRFGR
Replied by PaulMRFGR on topic Preopulate ranking question based on answers in a previous array?
Thank you, I have a feeling it's the outdated version but if anyone does have the time to test, it would be good to make sure.
As a quick workaround, the array filter solution works if we do the ranking question as an array style. We'd just need some logic to ensure each user can only select one rank per answer option. E.G. so they don't give the top rank to multiple answer options. Does anyone know what code would do this?
Thanks again for all your help.
As a quick workaround, the array filter solution works if we do the ranking question as an array style. We'd just need some logic to ensure each user can only select one rank per answer option. E.G. so they don't give the top rank to multiple answer options. Does anyone know what code would do this?
Thanks again for all your help.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
3 years 1 month ago #213517
by Joffm
Oh, no.
I have to remember: No more answers without asking for the version.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Preopulate ranking question based on answers in a previous array?
I think we're on an older version of 2.05+
Oh, no.
I have to remember: No more answers without asking for the version.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
3 years 1 month ago #213535
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 Preopulate ranking question based on answers in a previous array?
- demonstration.sondages.pro/index.php/714997?lang=fr#As a quick workaround, the array filter solution works if we do the ranking question as an array style. We'd just need some logic to ensure each user can only select one rank per answer option. E.G. so they don't give the top rank to multiple answer options. Does anyone know what code would do this?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- PaulMRFGR
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 0
3 years 1 month ago #213607
by PaulMRFGR
Replied by PaulMRFGR on topic Preopulate ranking question based on answers in a previous array?
Hi guys,
Sorry again to be such a pain. The Unique(self) validation equation doesn't work either - and this equation should definitely work on our version as I remember using it before.
I've attached the .lss and if you wouldn't mind giving it the once over, it would be most appreciated.
Sorry! We are looking into updating to the latest version.
Sorry again to be such a pain. The Unique(self) validation equation doesn't work either - and this equation should definitely work on our version as I remember using it before.
I've attached the .lss and if you wouldn't mind giving it the once over, it would be most appreciated.
Sorry! We are looking into updating to the latest version.
The topic has been locked.