- Posts: 5
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Dynamische Listitems
- DanieleCNC
- Topic Author
- Offline
- New Member
Bei einer Umfrage muss aus einer DropDown Liste eine Person ausgewählt werden, die anhand weiterer Fragen evaluiert wird.
Das soll mit mehreren Personen der gleichen Liste funktionieren.
FRAGE: Gibt es die Möglichkeit für die nächsten Dropdowns nur die Personen anzuzeigen, die vorher nicht ausgewählt wurden.
Beispiel: Max wurde im ersten Dropdown ausgewählt und danach evaluiert. Max soll somit im nächsten Dropdown nicht mehr zu sehen sein, damit er nicht doppelt evaluiert wird.
Ich bedanke mich jetzt schon für die Hilfe!
- jelo
- Offline
- Platinum Member
- Posts: 5070
- Thank you received: 1263
bugs.limesurvey.org/view.php?id=11688
Für SingleChoice Antworten gibt es leider auch keine Relevanzgleichungen, um einzelne Items auszublenden.
Es bleiben damit nur Workarounds, die vielleicht weiterhelfen.
Z.B. forums.limesurvey.org/forum/installation...-drop-down-selection
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
- Joffm
- Away
- LimeSurvey Community Team
- Posts: 12779
- Thank you received: 3940
Dropdown ist zunächst dafür die denkbar schlechteste Lösung.
Wie Du sicher gesehen hast, gibt es weder eine Relevanz auf Antwortoptionen (ob es die jemals geben wird?) noch die Möglichkeit des Matrixfilters.
Jetzt gäbe es die Möglichkeit, eine Mehrfachnennung daraus zu machen,
- mit jeweils maximaler Antwortzahl = 1
- mit Fragedesignvorlage "Multiple-Choice-Dropdown" ( github.com/tpartner?tab=repositories )
Und noch die Möglichkeit, mit einem "autocomplete" die Namen zu wählen.
forums.limesurvey.org/forum/can-i-do-thi...riable-length#206425
Beide letzten Lösungen steuern natürlich auch darufhin, alle benötigten Namen am Anfang auszuwählen und danach zu jedem einzelnen die Fragen zu stellen.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
- DanieleCNC
- Topic Author
- Offline
- New Member
- Posts: 5
- Thank you received: 0
Wir haben die Listen jetzt mit dem Autocomplete erstellt. Allerdings möchte ich jetzt einen Validierungsgleichung erstellen, die einen Hinweis aufpoppen lässt, sobald man die gleiche Person nochmals anwählt.
LG
Daniele
- Joffm
- Away
- LimeSurvey Community Team
- Posts: 12779
- Thank you received: 3940
Es muss doch einfach Q1!=Q2 sein, oder Q1_SQ001!=Q2_SQ001 mit einem Hinweis wie
{if Q1==Q2,"Diese Person wurde bereits ausgewählt","")} oder was auch immer.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
- DanieleCNC
- Topic Author
- Offline
- New Member
- Posts: 5
- Thank you received: 0
- DanieleCNC
- Topic Author
- Offline
- New Member
- Posts: 5
- Thank you received: 0
Die Validierungsgleichung (SecondPerson != FirstPerson) ist auch zu sehen.Wenn ich jetzt im Fragebogen nacheinander zwei verschiedene Antworten auswähle, kommt ein Hinweis, dass das nicht geht. (Es sind auch wirklich zwei verschiedene Antworten, ich habe es in der Antwortenübersicht überprüft).
Wissen Sie vielleicht, was ich falsch mache/ warum es nicht klappt?
- Joffm
- Away
- LimeSurvey Community Team
- Posts: 12779
- Thank you received: 3940
Dort kann man im "Hinweis" auch sagen, was falsch ist.
Steht auch im Handbuch, dass die Validierung dort, wo Du sie eingetragen hast, für "Regular Expressions" ist. Lass aber auch diese dort weg.
manual.limesurvey.org/Question_type_-_Short_free_text
a.
Validation (using regular expressions) (preg_validation)
Description
This option lets you specify a regular expression with which you can validate all the parts of a question.
If any question or subquestion value does not meet the validation requirements, the background colour of the text entry field will be changed to red so that users can easily see which parts of the question need to be corrected. Thus, you can do on-page validation. In this way you will not need to wait for the user to click on the submit button to validate the respective question.
Valid values
Any valid regular expression
b.
Question validation equation (em_validation_q)
Description
This is an equation that is used to validate the entire question (e.g, all of its parts collectively for a multi-answer question). If the question fails the validation criteria, then em_validation_q_tip message will be displayed (it uses the CSS style .error). This tip uses the .em_q_fn_validation CSS style, which is hidden by default within template.css.
The main difference between this feature and the subquestion validation equations (em_validation_sq option) is that for this feature, if the question (or question parts) fail validation, then an error message could be shown. For the subquestion validation, each text entry cell (e.g., in an array question type, but it can also be applied to single entry question types) will be styled so that the background color is (light) red.
Valid values
Any equation that makes use of the ExpressionScript syntax, without surrounding curly braces.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
- DanieleCNC
- Topic Author
- Offline
- New Member
- Posts: 5
- Thank you received: 0
Ich wünsche noch einen schönen Tag!