2 multi-choice lists --> one list from answers that were checked

More
2 years 11 months ago #107208 by angol2
Hello,

I'd like to set a question with a list of answers that combines lists from two previous questions. The new list should contain checked answers form two previous multi-choice questions. Can i do it with LS? :)

Kind regards,
Andrzej

Please Log in to join the conversation.

More
2 years 11 months ago #107210 by tpartner
Yes, you can use array filter to filter answers in Q3 by those checked in Q1 or Q2.

Give all of the answers in Q1 and Q2 unique codes and then give the answers in Q3 codes that match those.

Here's a working example:

File Attachment:

File Name: limesurvey...5541.lss
File Size:23 KB

Cheers,
Tony Partner

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

Please Log in to join the conversation.

More
2 years 11 months ago #107211 by angol2
Great, thank you for your prompt answer!

Kind regards,
Andrzej

Please Log in to join the conversation.

More
2 years 9 months ago #110189 by Laurenshi
Hi,I tried to download the file with the multi-choice lists, but I was not able to save it to my computer as a lss file. My browser (IE 11) just opens it (see attachment). When I try to save it from my browser, I'm presented two options, neither of which amounts to a lss file:
  • Webpage, source only (*.xml, *.xht, *.xhtml, *.svg
  • Text file (*.txt)

Subsequent import in LimeSurvey fails of course, because the file type is incorrect. Do you have any suggestions to save the file attachment as a "real" lss file? Thanks a lot!
Attachments:

Please Log in to join the conversation.

More
2 years 9 months ago #110190 by tpartner
Save it as a .txt, then go to the file location and change the extension to .lss (as if you were changing the file name).

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Laurenshi

Please Log in to join the conversation.

More
2 years 9 months ago #110199 by Laurenshi
I followed the instructions and changed the file extension to .lss. I also consulted the following help pages provided by Microsoft:

However, when I tried to import the lss file in LimeSurvey, I got this message (see attachment). What should I do?
Attachments:

Please Log in to join the conversation.

More
2 years 9 months ago #110207 by tpartner
Try downloading this file and removing the .txt extenstion.

File Attachment:

File Name: limesurvey....lss.txt
File Size:23 KB

Cheers,
Tony Partner

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

Please Log in to join the conversation.

More
2 years 9 months ago #110219 by Laurenshi
Thank you for your response. I tried to import the file as you suggested, but I got the following error message (see attachment). According to the LimeSurvey Issue tracker, this error results from the questionindex field, which is not supported in version 2.00+ Build 131009 (the version I use).

Source: bugs.limesurvey.org/view.php?id=8078

Is this file also available in a format that is supported by version 2.00? I can't update to version 2.05 myself.
Attachments:

Please Log in to join the conversation.

More
2 years 9 months ago #110220 by tpartner
No, sorry, I don't have that survey in 2.0 but you can simply follow the instruction regarding array filter above.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Laurenshi

Please Log in to join the conversation.

More
2 years 9 months ago #110232 by Laurenshi
I now managed to import this file via LimeService (now LimeSurvey Professional). Thank you for your support.

Please Log in to join the conversation.