- Posts: 12
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Eben: Du erfragst vorher, welche Ebenen vorhanden sind (Mehrfachnennung) und zeigst dann nur noch diese in Deiner Matrix an (Matrixfilter)einerseits weil bestimmte Hierarchieeben vllt. nicht vorhanden sind
Please Log in to join the conversation.
Please Log in to join the conversation.
In "Anzeige"Zum Thema Drop-Down: Kannst du mir sagen, wie ich das ausschalte?
Das macht man besser mit der Funktion "count"(Bedingung mit OR soll prüfen ob irgendein Eintrag ausgewählt wurd
Es ist zwar lang, da man jede Zelle vergleichen muss, aber nicht aufwendig. Einfach ExpressionScriptUm die Frage zur Validierung muss ich mich wohl später kümmern, weil die Zeit drängt. Dafür ist ja wahrscheinlich auch ein aufwendigeres Script notwendig
Please Log in to join the conversation.
Please Log in to join the conversation.
Weder noch.Gebe ich die Formel unter "Allgemeine Einstellungen" und "Eingabevalidierung (RegExp)" ein?
Das verstehe ich nicht. Die Validierung geschieht doch in der Matrixfrage. Wieso eine neue Frage?Könnte man dies auch direkt in die Matrix einbauen. Oder muss ich wirklich zuerst nach Gesamt fragen und die Validierung funktioniert dann erst in einer neuen Frage?
Das ist wie wir es in der Schule gelernt haben (Aussagenlogik, Boolsche Algebra, oder wie auch immer das Kind heißen soll)Wie ist das semantisch? Sind es dann einfach mehrere Validierungen (Leerzeichen? Komma?) oder muss ich ein AND oder OR dazu schreiben?
Please Log in to join the conversation.
<style> .no-bottom { border-bottom:0;margin-bottom:0; } .no-bottom .answer-container { padding-top: 0em; padding-bottom: 0em; } </style>
Please Log in to join the conversation.
Please Log in to join the conversation.
(Q1_Y001!="Y" OR count(self.sq_Y001_A.NAOK)==4 OR count(self.sq_Y001_B.NAOK)==1) AND (Q1_Y002!="Y" OR count(self.sq_Y002_A.NAOK)==4 OR count(self.sq_Y002_B.NAOK)==1) AND (Q1_Y003!="Y" OR count(self.sq_Y003_A.NAOK)==4 OR count(self.sq_Y003_B.NAOK)==1) AND (Q1_Y004!="Y" OR count(self.sq_Y004_A.NAOK)==4 OR count(self.sq_Y004_B.NAOK)==1) AND (Q1_Y005!="Y" OR count(self.sq_Y005_A.NAOK)==4 OR count(self.sq_Y005_B.NAOK)==1) AND (Q1_Y006!="Y" OR count(self.sq_Y006_A.NAOK)==4 OR count(self.sq_Y006_B.NAOK)==1) AND (Q1_Y007!="Y" OR count(self.sq_Y007_A.NAOK)==4 OR count(self.sq_Y007_B.NAOK)==1) AND (Q1_Y008!="Y" OR count(self.sq_Y008_A.NAOK)==4 OR count(self.sq_Y008_B.NAOK)==1) AND (Q1_Y009!="Y" OR count(self.sq_Y009_A.NAOK)==4 OR count(self.sq_Y009_B.NAOK)==1) AND (Q1_Y010!="Y" OR count(self.sq_Y010_A.NAOK)==4 OR count(self.sq_Y010_B.NAOK)==1) AND (Q1_Y011!="Y" OR count(self.sq_Y011_A.NAOK)==4 OR count(self.sq_Y011_B.NAOK)==1) AND (Q1_Y012!="Y" OR count(self.sq_Y012_A.NAOK)==4 OR count(self.sq_Y012_B.NAOK)==1) AND (is_empty(Q1_other) OR count(self.sq_other_A.NAOK)==4 OR count(self.sq_other_B.NAOK)==1) AND Q1a_Y001_A002.NAOK le Q1a_Y001_A001.NAOK AND Q1a_Y001_A004.NAOK le Q1a_Y001_A003.NAOK AND Q1a_Y002_A002.NAOK le Q1a_Y002_A001.NAOK AND Q1a_Y002_A004.NAOK le Q1a_Y002_A003.NAOK AND Q1a_Y003_A002.NAOK le Q1a_Y003_A001.NAOK AND Q1a_Y003_A004.NAOK le Q1a_Y003_A003.NAOK AND Q1a_Y004_A002.NAOK le Q1a_Y004_A001.NAOK AND Q1a_Y004_A004.NAOK le Q1a_Y004_A003.NAOK AND Q1a_Y005_A002.NAOK le Q1a_Y005_A001.NAOK AND Q1a_Y005_A004.NAOK le Q1a_Y005_A003.NAOK AND Q1a_Y006_A002.NAOK le Q1a_Y006_A001.NAOK AND Q1a_Y006_A004.NAOK le Q1a_Y006_A003.NAOK AND Q1a_Y007_A002.NAOK le Q1a_Y007_A001.NAOK AND Q1a_Y007_A004.NAOK le Q1a_Y007_A003.NAOK AND Q1a_Y008_A002.NAOK le Q1a_Y008_A001.NAOK AND Q1a_Y008_A004.NAOK le Q1a_Y008_A003.NAOK AND Q1a_Y009_A002.NAOK le Q1a_Y009_A001.NAOK AND Q1a_Y009_A004.NAOK le Q1a_Y009_A003.NAOK AND Q1a_Y010_A002.NAOK le Q1a_Y010_A001.NAOK AND Q1a_Y010_A004.NAOK le Q1a_Y010_A003.NAOK AND Q1a_Y011_A002.NAOK le Q1a_Y011_A001.NAOK AND Q1a_Y011_A004.NAOK le Q1a_Y011_A003.NAOK AND Q1a_Y012_A002.NAOK le Q1a_Y012_A001.NAOK AND Q1a_Y012_A004.NAOK le Q1a_Y012_A003.NAOK AND Q1a_other_A002.NAOK le Q1a_other_A001.NAOK AND Q1a_other_A004.NAOK le Q1a_other_A003.NAOK
{if((Q1_Y001=="Y" AND count(self.sq_Y001_A.NAOK)!=4 AND count(self.sq_Y001_B.NAOK)!=1) OR (Q1_Y002=="Y" AND count(self.sq_Y002_A.NAOK)!=4 AND count(self.sq_Y002_B.NAOK)!=1) OR (Q1_Y003=="Y" AND count(self.sq_Y003_A.NAOK)!=4 AND count(self.sq_Y003_B.NAOK)!=1) OR (Q1_Y004=="Y" AND count(self.sq_Y004_A.NAOK)!=4 AND count(self.sq_Y004_B.NAOK)!=1) OR (Q1_Y005=="Y" AND count(self.sq_Y005_A.NAOK)!=4 AND count(self.sq_Y005_B.NAOK)!=1) OR (Q1_Y006=="Y" AND count(self.sq_Y006_A.NAOK)!=4 AND count(self.sq_Y006_B.NAOK)!=1) OR (Q1_Y007=="Y" AND count(self.sq_Y007_A.NAOK)!=4 AND count(self.sq_Y007_B.NAOK)!=1) OR (Q1_Y008=="Y" AND count(self.sq_Y008_A.NAOK)!=4 AND count(self.sq_Y008_B.NAOK)!=1) OR (Q1_Y009=="Y" AND count(self.sq_Y009_A.NAOK)!=4 AND count(self.sq_Y009_B.NAOK)!=1) OR (Q1_Y010=="Y" AND count(self.sq_Y010_A.NAOK)!=4 AND count(self.sq_Y010_B.NAOK)!=1) OR (Q1_Y011=="Y" AND count(self.sq_Y011_A.NAOK)!=4 AND count(self.sq_Y011_B.NAOK)!=1) OR (Q1_Y012=="Y" AND count(self.sq_Y012_A.NAOK)!=4 AND count(self.sq_Y012_B.NAOK)!=1) OR (!is_empty(Q1_other) AND count(self.sq_other_A.NAOK)!=4 AND count(self.sq_other_B.NAOK)!=1),'Bitte, füllen Sie alle Zellen aus oder "Weiß nicht"', if(Q1a_Y001_A002.NAOK gt Q1a_Y001_A001.NAOK OR Q1a_Y001_A004.NAOK gt Q1a_Y003_A001.NAOK OR Q1a_Y002_A002.NAOK gt Q1a_Y002_A001.NAOK OR Q1a_Y002_A004.NAOK gt Q1a_Y002_A003.NAOK OR Q1a_Y003_A002.NAOK gt Q1a_Y003_A001.NAOK OR Q1a_Y003_A004.NAOK gt Q1a_Y003_A003.NAOK OR Q1a_Y004_A002.NAOK gt Q1a_Y004_A001.NAOK OR Q1a_Y004_A004.NAOK gt Q1a_Y004_A003.NAOK OR Q1a_Y005_A002.NAOK gt Q1a_Y005_A001.NAOK OR Q1a_Y005_A004.NAOK gt Q1a_Y005_A003.NAOK OR Q1a_Y006_A002.NAOK gt Q1a_Y006_A001.NAOK OR Q1a_Y006_A004.NAOK gt Q1a_Y006_A003.NAOK OR Q1a_Y007_A002.NAOK gt Q1a_Y007_A001.NAOK OR Q1a_Y007_A004.NAOK gt Q1a_Y007_A003.NAOK OR Q1a_Y008_A002.NAOK gt Q1a_Y008_A001.NAOK OR Q1a_Y008_A004.NAOK gt Q1a_Y008_A003.NAOK OR Q1a_Y009_A002.NAOK gt Q1a_Y009_A001.NAOK OR Q1a_Y009_A004.NAOK gt Q1a_Y009_A003.NAOK OR Q1a_Y010_A002.NAOK gt Q1a_Y010_A001.NAOK OR Q1a_Y010_A004.NAOK gt Q1a_Y010_A003.NAOK OR Q1a_Y011_A002.NAOK gt Q1a_Y011_A001.NAOK OR Q1a_Y011_A004.NAOK gt Q1a_Y011_A003.NAOK OR Q1a_Y012_A002.NAOK gt Q1a_Y012_A001.NAOK OR Q1a_Y012_A004.NAOK gt Q1a_Y012_A003.NAOK OR Q1a_other_A002.NAOK gt Q1a_other_A001.NAOK OR Q1a_other_A004.NAOK gt Q1a_other_A003.NAOK, 'Anzahl Teilzeit darf nicht größer sein als Anzahl Gesamt',''))}
Please Log in to join the conversation.
Völlig klar.Und jetzt passiert das: Nur wenn ich in der Frage davor genau die beiden ersten auswähle, nur dann funktioniert die kleiner gleich Validierung für jeweils beide.
Please Log in to join the conversation.