Welcome to the LimeSurvey Community Forum

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

Minimum answers validation per row on filtered Array By Numbers

  • JSamarov
  • JSamarov's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 3 months ago #232761 by JSamarov
Your LimeSurvey version: LimeSurvey Cloud
Version 5.4.3

==================
Hi guys )
  • Our question Q1 (Multiple choice) that lists products  
  • Our question Q2 (Array by Numbers) has an Array filter applied on Q1 
Now we need to make sure each row in Q2 has two answers.
  • The problem with the the below example is that it only checks one row(count(self.sq_1.NAOK) == 2) OR
    (count(self.sq_2.NAOK) == 2)

    Yet, the problem with the the below is that it checks each row. In other words, if some products in Q2 are not showing based on array filter, it'll give an error.  (count(self.sq_1.NAOK) == 2) AND
    (count(self.sq_2.NAOK) == 2)

Is there a way around this?
Many thanks!

Jay

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 3 months ago - 2 years 3 months ago #232767 by Joffm
The first I'd say, is: Check also if it is displayed.

But you should provide a lss export of these questions.
Help us to help you.

Having said this:
An validation equation where you check the entries in Q1 should work
where the subquestion of y-axis were coded "Y01", "Y02", ..., "Y10",...
(Q1_Y01=="Y" and count(self.sq_Y01)==2) and
(Q1_Y02=="Y" and count(self.sq_Y02)==2) and
(Q1_Y03=="Y" and count(self.sq_Y03)==2) and
(Q1_Y04=="Y" and count(self.sq_Y04)==2) and 
...



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 3 months ago by Joffm.
The following user(s) said Thank You: JSamarov

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose