- Posts: 16
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Text Array Subquestion Validation
- lemmon
- Topic Author
- Offline
- New Member
Less
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?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
5 years 2 months ago #179458
by DenisChenu
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.
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
…
(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.
- iosman
- Offline
- Banned
Less
More
- Posts: 6
- Thank you received: 0
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.
- iosman1
- Offline
- Banned
Less
More
- Posts: 3
- Thank you received: 0
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.