Array (numbers) - maximum multiple answers

More
1 month 3 weeks ago #158187 by bogika0107
bogika0107 created the topic: Array (numbers) - maximum multiple answers
Hello everyone!

Can i do a matrix, where i can maximize the answers number in this question type --> array (numbers).

I want to a table where I can use checkbox and the maximum answers number is 2(or 3 etc) in every column.

Thx for your help!

Please Log in to join the conversation.

More
1 month 3 weeks ago #158200 by Joffm
Joffm replied the topic: Array (numbers) - maximum multiple answers
Hello, Bogika0107,
please read:
https://manual.limesurvey.org/Expression_Manager#The_reserved_.27this.27.2C_.27self.27.2C_and_.27that.27_variables

You find:

What is the total of row B? {sum(self.sq_B.NAOK)}


In your case you want to know the count of the row.

What is the count of row B? {count(self.sq_B.NAOK)}

This way you can set a validation on the rows.

Best regards
Joffm
The following user(s) said Thank You: bogika0107

Please Log in to join the conversation.

More
1 month 3 weeks ago #158209 by bogika0107
bogika0107 replied the topic: Array (numbers) - maximum multiple answers
Dear Joffm!
Thank you for your help. I read the manual and the Expression Manager, but i couldn't fix my problem.
I have been attached a picture. It look like my question now. But i want limit the answers every column (not rows). If i set the maximum number of responses to two -in the other settings-, you can only give two answers in total. But i want you can select the 2 most importat things in every age groups.
Attachments:

Please Log in to join the conversation.

More
1 month 3 weeks ago #158217 by bogika0107
bogika0107 replied the topic: Array (numbers) - maximum multiple answers
OK, I found a solution! Thx :)
"(sum(self.sq_X1) <= 3) && (sum(self.sq_X2) <= 3) && (sum(self.sq_X3) <= 3) && (sum(self.sq_X4) <= 3) && (sum(self.sq_X5) <= 3)"

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now