Welcome, Guest
Username: Password: Remember me

TOPIC: Array filter with exclusive option

Array filter with exclusive option 1 year 7 months ago #110289

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5398
  • Thank you received: 1149
  • Karma: 477
If I understand the requirements correctly, this should do the trick. Use a different code for "Don't know" in Q2 and a slightly different relevance equation for Q2.

Question 1 (Code Q1) (multiple select question)
1 Answer 1
2 Answer 2
3 Answer 3
DK Don't know (exclusion option)
**Exclusion option:DK


Question2 (Code Q2) (another multiple select question)
1 Answer 1
2 Answer 2
3 Answer 3
DK2 Don't know (exclusion option)
Other, please specify
**Relevance equation: Q1_DK != 'Y'
**Array filter: Q1
**Exclusion option: DK2

File Attachment:

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


.
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Array filter with exclusive option 1 year 7 months ago #110290

  • dknvs
  • dknvs's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
Hi, Tony
thanks for your fast reply.
for our calculation on the site, the "DK" code is set if we want to exclude that from the calculation.
Would there be a way for me to keep that code?

thanks
Vicky
The administrator has disabled public write access.

Array filter with exclusive option 1 year 7 months ago #110292

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5398
  • Thank you received: 1149
  • Karma: 477
No, that will tie it to the array filter from Q1. The array filters work on sub-question codes.
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Array filter with exclusive option 1 year 7 months ago #110293

  • dknvs
  • dknvs's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
the "other, please specify" for Q2 still won't show...
The administrator has disabled public write access.

Array filter with exclusive option 1 year 7 months ago #110295

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5398
  • Thank you received: 1149
  • Karma: 477
Did you try my attached survey in LS 2.05?
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Array filter with exclusive option 1 year 7 months ago #110296

  • dknvs
  • dknvs's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
i tried..but it gave me error message.I usually had no problem. Not sure what's going on...
I will keep trying. thank you so much, Tony
Attachments:
The administrator has disabled public write access.

Array filter with exclusive option 1 year 7 months ago #110300

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5398
  • Thank you received: 1149
  • Karma: 477
What version of LimeSurvey are you using?
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Array filter with exclusive option 1 year 7 months ago #110301

  • dknvs
  • dknvs's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
it looks like it's not the newest version. it tells me that i can update. But it gave me the same error message when i tried to click on "3-Click ComfortUpdate"
Attachments:
The administrator has disabled public write access.

Array filter with exclusive option 1 year 7 months ago #110302

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5398
  • Thank you received: 1149
  • Karma: 477
Okay, try this survey:

File Attachment:

File Name: limesurvey...1867.lss
File Size:19 KB
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Array filter with exclusive option 1 year 7 months ago #110303

  • dknvs
  • dknvs's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
this one works!!
thank you so much, Tony!!!!!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.259 seconds