Welcome, Guest
Username: Password: Remember me

TOPIC: Retriving answered questions of an array in another array

Retriving answered questions of an array in another array 2 years 7 months ago #78890

  • dla
  • dla's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
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!
The administrator has disabled public write access.

Re: Retriving answered questions of an array in another array 2 years 7 months ago #78895

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
Hello,

Maybe you can try with array_filter attribute.
The administrator has disabled public write access.

Re: Retriving answered questions of an array in another array 2 years 7 months ago #78898

  • dla
  • dla's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
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: 2 years 7 months ago by dla.
The administrator has disabled public write access.

Re: Retriving answered questions of an array in another array 2 years 7 months ago #78940

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Retriving answered questions of an array in another array 2 years 7 months ago #78964

  • dla
  • dla's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
No it doesn't. It's just that I wasn't familiar yet with the difference code vs ID.
The administrator has disabled public write access.

Aw: Re: Retriving answered questions of an array in another array 2 years 7 months ago #78977

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.

Re: Aw: Re: Retriving answered questions of an array in another array 2 years 7 months ago #78985

  • dla
  • dla's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
Mazi wrote:
K, then RTFM ;-)

Absolutely, my new bible ;)
The administrator has disabled public write access.

Re: Aw: Re: Retriving answered questions of an array in another array 2 years 7 months ago #79011

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
LOL

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.156 seconds
Donation Image