Welcome to the LimeSurvey Community Forum

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

question partially mandatory

  • LsAssos
  • LsAssos's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #154808 by LsAssos
question partially mandatory was created by LsAssos
Hi everybody,

I create a survey for my association to know more about the families. I focus on family with both parents who are members and may have children.

I created an numeric array. The first two lines are the parents and then the children. I would like the first two lines be mandatory but not the next lines.

Is it possible ?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 10 months ago #154822 by tpartner
Replied by tpartner on topic question partially mandatory
You can achieve that with the whole question validation equation - manual.limesurvey.org/Question_type_-_Ar...28em_validation_q.29

Assuming, for example:
- Question type: Array (Numbers)
- Y-scale sub-question codes: Y001, Y002, Y003...
- 3 x-scale sub-questions (3 columns)

The whole question validation equation would be:
Code:
count(self.sq_Y001) == 3 AND count(self.sq_Y002) == 3

The Question validation tip could be something like:
Code:
{if(count(self.sq_Y001) == 3 AND count(self.sq_Y002) == 3, '', 'Please complete rows 1 and 2.')}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • LsAssos
  • LsAssos's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #154831 by LsAssos
Replied by LsAssos on topic question partially mandatory
Hi tpartner

Thank you a lot. That is exactly what I need. You save my day.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose