Welcome to the LimeSurvey Community Forum

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

Text Array Subquestion Validation

  • lemmon
  • lemmon's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #179445 by lemmon
Text Array Subquestion Validation was created by lemmon
I have a text array with 3 subquestions (columns) on the X-Scale. How would I go about validating each line, so that if SQ1 (use) is filled in, the user also has to fill in SQ2 (duration) and SQ3 (what) on the same line (Y-axis question)?

I have put this into the Subquestion validation equation:

(count(self.sq_use)==count(self.sq_duration)) and (count(self.sq_use)==count(self.sq_what))

However, it validates the whole question, and not each subquestion by itself?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 months ago #179458 by DenisChenu
Replied by DenisChenu on topic Text Array Subquestion Validation
I think you need to set equation for each line separatly

(is_empty(QQ_SY1_use.NAOK) or count(self.sq_SY1.NAOK) == 0)
and

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
5 years 2 months ago #179755 by iosman
Replied by iosman on topic Text Array Subquestion Validation
Wow actually i loved your blog man..Thanks for sharing awesome content..
The topic has been locked.
More
5 years 2 months ago - 5 years 2 months ago #179806 by iosman1
Replied by iosman1 on topic Text Array Subquestion Validation
SPAM
Last edit: 5 years 2 months ago by DenisChenu.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose