Welcome to the LimeSurvey Community Forum

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

Array filter and question validation?

  • tpartner
  • tpartner's Avatar Topic Author
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 9 months ago - 7 years 9 months ago #137984 by tpartner
Array filter and question validation? was created by tpartner
You should be able to check the Qcode.relevanceStatus - manual.limesurvey.org/Expression_Manager#Access_to_Variables

So, something like this:

Code:
((sum(self.sq_SQ001.NAOK) == 100) OR (self.sq_SQ001.relevanceStatus != 1)) 
AND 
((sum(self.sq_SQ002.NAOK) == 100) OR (self.sq_SQ002.relevanceStatus != 1)) 
AND 
((sum(self.sq_SQ003.NAOK) == 100) OR (self.sq_SQ003.relevanceStatus != 1)) 
AND 
((sum(self.sq_SQ004.NAOK) == 100) OR (self.sq_SQ004.relevanceStatus != 1))

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 7 years 9 months ago by tpartner.
The following user(s) said Thank You: segui
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose