Welcome to the LimeSurvey Community Forum

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

Check whether a specific cell selected in Array by Number

  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
5 years 5 months ago - 5 years 5 months ago #174894 by blocka
I need to write a condition to determine whether a specific cell (row and column intersect) has been selected in an Array by Number question type in order to select to show some subsequent questions.

So for example, I need to test whether Y4X3 was selected as shown below?



How can check whether this cell (Y4X3) was selected?
Last edit: 5 years 5 months ago by blocka.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 5 months ago #174896 by holch
As far as I know you can reference this question type like this
Code:
questioncode_subquestioncode_answercode

Now usually multiple choice questions have "Y" if they are checked, but this is no normal multiple choice question, but based on the array by number. So you would need to check what is stored in the database when a specific answer was coded. Probably it is "0" vs. "1" or something like that.

Usually the question logic file helps to understand how to get to the answers.

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: DenisChenu
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 5 months ago #174897 by holch
Otherwise: add a LSS File with just this question, so we can check.

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

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose