Preopulate ranking question based on answers in a previous array?

More
10 months 2 days ago #213374 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.

Please Log in to join the conversation.

More
10 months 2 days ago #213382 by Joffm
Hi,
I should insert a hidden multiple question that is used as array filter.

   



 

File Attachment:

File Name: limesurvey...7871.lss
File Size:26 KB


Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
10 months 2 days ago #213395 by PaulMRFGR
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!
 

File Attachment:

File Name: limesurvey...9758.lss
File Size:31 KB
Attachments:

Please Log in to join the conversation.

More
10 months 2 days ago #213414 by Joffm
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


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, PaulMRFGR

Please Log in to join the conversation.

More
10 months 2 days ago #213453 by PaulMRFGR
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?

Please Log in to join the conversation.

More
10 months 1 day ago #213459 by Joffm
I do not see any issue.
Both questions are mandatory and it works.

   

 

 



And again the survey.
 

File Attachment:

File Name: limesurvey... (1).lss
File Size:34 KB


Joffm
 


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:

Please Log in to join the conversation.

More
10 months 1 day ago #213462 by PaulMRFGR
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+

Please Log in to join the conversation.

More
10 months 1 day ago #213478 by holch

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.

Please Log in to join the conversation.

More
10 months 1 day ago #213494 by PaulMRFGR
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.

Please Log in to join the conversation.

More
10 months 1 day ago #213517 by Joffm

 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

Please Log in to join the conversation.

More
10 months 1 day ago #213535 by tpartner

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?

- demonstration.sondages.pro/index.php/714997?lang=fr#

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
10 months 15 hours ago #213607 by PaulMRFGR
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.
 

File Attachment:

File Name: limesurvey...4557.lss
File Size:38 KB
Attachments:

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now