Welcome to the LimeSurvey Community Forum

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

Matrix texts -> first line must be entered

  • halliballi123
  • halliballi123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 3 weeks ago - 11 months 3 weeks ago #243095 by halliballi123
Matrix texts -> first line must be entered was created by halliballi123
Is it possible to make a validation in a question matrix texts (multiple fields per line) that forces the user to fill in the fields in the first row?

sorry, I don 't know why the question is now under installation update issues, tried to put it into some different category
Last edit: 11 months 3 weeks ago by halliballi123.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 3 weeks ago #243097 by Joffm
Replied by Joffm on topic Matrix texts -> first line must be entered
Why didn't you answer the questions at the beginning?

How did you code the y-axis and the x-axis?
If you use something like "Y01", "Y02",... for the y-axis and "X01", "X02",... for the x-axis you only have to count the filled fields, like
count(self.sq_Y01)==[number of columns]

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

Please Log in to join the conversation.

  • halliballi123
  • halliballi123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 3 weeks ago #243100 by halliballi123
Replied by halliballi123 on topic Matrix texts -> first line must be entered
Great, thank you that helped.

Frage-Validierungsgleichung: count(Notebook1_Y001_X001, Notebook1_Y001_X002, Notebook1_Y001_X003) == 3

Frage Validierungshinweis: if(count(Notebook1_Y001_X001, Notebook1_Y001_X002, Notebook1_Y001_X003) < 3 != 3, "Bitte, füllen Sie die erste Zeile aus!", "")

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 3 weeks ago #243103 by Joffm
Replied by Joffm on topic Matrix texts -> first line must be entered
Eben, but it's shorter with ".self".

And where are the curly brackets around your validation tip?

And this seems to be really strange "< 3 != 3"

Joffm

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

Please Log in to join the conversation.

  • halliballi123
  • halliballi123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 3 weeks ago #243104 by halliballi123
Replied by halliballi123 on topic Matrix texts -> first line must be entered
sorry, you are right.
I copied from logic check and there was an error as well.

count(self.sq_Y001)==3

and for the tip
{if(count(self.sq_Y001)!=3,"Bitte, füllen Sie mindestens die erste Zeile aus!<br/>","")}

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose