- Posts: 39
- Thank you received: 1
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
- Topic Author
- Offline
- Junior Member
Less
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12941
- Thank you received: 3979
11 months 3 weeks ago #243097
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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]
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 39
- Thank you received: 1
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!", "")
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12941
- Thank you received: 3979
11 months 3 weeks ago #243103
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 39
- Thank you received: 1
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)=
and for the tip
{if(count(self.sq_Y001)!,"Bitte, füllen Sie mindestens die erste Zeile aus!<br/>","")}
I copied from logic check and there was an error as well.
count(self.sq_Y001)=
and for the tip
{if(count(self.sq_Y001)!,"Bitte, füllen Sie mindestens die erste Zeile aus!<br/>","")}
Please Log in to join the conversation.