Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Array filter exclusion for single choice quest. does not exclude single answers

  • Olivier1234
  • Olivier1234's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 months 3 weeks ago - 4 months 3 weeks ago #266198 by Olivier1234
Please help us help you and fill where relevant:
LimeSurvey version:  LimeSurvey Community Edition, Version 3.28.52
Own server or LimeSurvey Cloud: LimeSurvey server managed by third party
Survey theme/template: created by third party
==================
Hi,
I have four single choice questions with the same four answers and want to make sure that once an answer is selected, it cannot be selected in any of the other questions.
Can I do that with array filter exclusion? I've tested on two questions by entering the code of the first in the array filter exclusion field of the second:


I have also made sure that all answers have the same code.

Unfortunately, selecting an answer in the first question greys all answers from the second.
Is it possible to use array filter exclusion so as to exclude single answers only?

Best regards,
Olivier

 
Last edit: 4 months 3 weeks ago by Olivier1234.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 months 3 weeks ago #266199 by holch
Array filter does not work with single punch questions as a source of the exclusion. So you would have to work around this with multipunch questions set by equation questions.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: Olivier1234

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 months 3 weeks ago #266206 by tpartner
Or validate the questions with the unique() function.
Code:
unique(Q1, Q2, Q3, Q4)

- www.limesurvey.org/manual/ExpressionScri...#Access_to_functions

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: holch, Olivier1234

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose