Welcome to the LimeSurvey Community Forum

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

Brand Association Question_Restrict the no. of answers per row

  • letty
  • letty's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 8 months ago #157077 by letty
To create a brand association question, i used "Array (Number)" as question type and selected "Yes" for Checkbox layout under advanced settings.

I would like to restrict to the maximum number of answers per row.

Is there any solutions?

Thanks!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 8 months ago #157080 by Joffm
Hi, letty,
Use sub-question validation.

Set to (count(self.NAOK)<X) with X as your desired value.

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 8 months ago #157093 by Joffm
Hi, letty,

well, I answered without thinking.
Of course you have to do the sub-question validation on each row like:

(count(self.sq_SQ001.NAOK)<3) and (count(self.sq_SQ002.NAOK)<3) and (count(self.sq_SQ003.NAOK)<3)

where SQ001,... are the codes of the subquestions.
Meaning you can set your maximum for each row individually.

Nest regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose