Welcome to the LimeSurvey Community Forum

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

Only one answer of a given type per line

  • Hietsu
  • Hietsu's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 2 months ago - 2 years 2 months ago #234114 by Hietsu
Hello,

With what code can I use to get a limited array (numbers), so that each row can be answered with only one "1" from the drop-down menu, but several "2" options?

In the appendix few pictures to clarify (first is allowed, second is not)

Thank you!
Attachments:
Last edit: 2 years 2 months ago by Hietsu. Reason: pictures

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #234120 by Joffm
Replied by Joffm on topic Only one answer of a given type per line
You may use a question validation like
countif("1",self.sq_Y001)<2 and countif("1",self.sq_Y002)<2 ...
You see, I coded the y-axis "Y001", "Y002", ...



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • Hietsu
  • Hietsu's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 2 months ago #234121 by Hietsu
Replied by Hietsu on topic Only one answer of a given type per line
Thanks, this solved my problem!

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose