Check out the LimeSurvey source code on GitHub!

Retriving answered questions of an array in another array

More
4 years 10 months ago #78890 by dla
Hello,

I'm a Limesurvey newbie posting my first social network analysis survey on the net. I'm using version1.92 build120405.

One of the major questions of my survey displays an array listing about 200 Non Profit Organizations names. Each NPO is asked to indicate which NPO of the list they are aware of, have contact with or collaborate with.

The structure of the array is the following :

aware contact collaborate no answer
NPO1
NPO2
.
.
NPO200

The default button is "no answer".

Let's say, a respondant answered having contact or collaboration with NPOx, NPOy, NPOz. Now I would like to retrive NPOx, NPOy, NPOz in a subsequent question of this type : "In the previous question you mentionnend having contact/collaboration with the NPOs listed below : did you ask for an advice to anybody of these NPOs in the last six months ?"
YES NO
NPOx
NPOy
NPOz

Could somebody help me doing that? Any help would be great!

Please Log in to join the conversation.

More
4 years 10 months ago #78895 by DenisChenu
Hello,

Maybe you can try with array_filter attribute.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
4 years 10 months ago - 4 years 10 months ago #78898 by dla

DenisChenu wrote: Hello,

Maybe you can try with array_filter attribute.


Thanks a lot Denis. It works fine with array_filter. Just need to fill the filter field with question CODE, not Q(ID).

Bonne soirée.
Last Edit: 4 years 10 months ago by dla.

Please Log in to join the conversation.

More
4 years 10 months ago #78940 by Mazi

dla wrote: Thanks a lot Denis. It works fine with array_filter. Just need to fill the filter field with question CODE, not Q(ID).

Bonne soirée.

Does the manual somewhere refer to the questionID? If so, please correct that.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
4 years 10 months ago #78964 by dla
No it doesn't. It's just that I wasn't familiar yet with the difference code vs ID.

Please Log in to join the conversation.

More
4 years 10 months ago #78977 by Mazi
K, then RTFM ;-)


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
4 years 10 months ago #78985 by dla

Mazi wrote: K, then RTFM ;-)


Absolutely, my new bible ;)

Please Log in to join the conversation.

More
4 years 10 months ago #79011 by Mazi
LOL


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form