Welcome to the LimeSurvey Community Forum

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

Suchfunktion in einer Frage

  • NielSD
  • NielSD's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #157428 by NielSD
Suchfunktion in einer Frage was created by NielSD
Hey,
ich möchte eine Frage erstellen, in der der Proband seine Sportart angeben kann.
Ist es möglich, dass man seine Sportart eingibt und dann wie bei einer Google Suche die Antwortmöglichkeiten vervollständigt oder die Antwortmöglichkeiten vorschlägt.
Ich habe Version 2.67.2, allerdings nur eine Testversion, werde aber noch die Limesurvey Pro Version kaufen.
Liebe Grüße
Niels
The topic has been locked.
More
6 years 8 months ago #157439 by jelo
Replied by jelo on topic Suchfunktion in einer Frage
LimeSurvey selbst biete die Funktion nicht an.
Es gibt im Forum und im Manual ( manual.limesurvey.org/Workarounds:_Manip...ulate_several_fields ) allerdings Workarounds, wo man solche Sachen in eine Frage "reinbasteln" kann. Ob man damit zurecht kommt, sollte man ohne zeitlichen Druck ausprobieren. Oftmals klappt es nicht mit jeder Version. Daher ist viel Testen angesagt.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: NielSD
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 8 months ago #157441 by Joffm
Replied by Joffm on topic Suchfunktion in einer Frage
Hallo, Niels,
ich komme mit diesem Workaround (aus dem Manual) gut zurecht:
Code:
<script type="text/javascript" charset="utf-8">
 
    $(document).ready(function() {
 
    var qID = 18402;    // Hier anpassen
 
    $('#question'+qID+' input[type="text"]').autocomplete({
      minLength: 2, // This line is optional, signifies number of keystrokes before autocomplete is initiated
      source: [
"3M", 
"ABB Entrelec", 
"ACON", 
"AMP (Tyco)", 
"Amphenol", 
"Apex", 
"APFEL", 
"Beckhoff", 
"Beijing No.3 Machine Tool &amp; Electric Apparatus Factory", 
"Beijing No.5 Electronic Component Factory", 
"usw"]
    });
 
  });
 
</script>

Siehe attachment.
Du siehst, die Auswahl zeigt an, wenn die eingegebenen Buchstaben irgendwo enthalten sind.

Viel Erfolg
Joffm


Übrigens: Dies ist seit Dez. 2016 im Einsatz, also durch viele Versionen von 2.6X hindurch.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: holch, NielSD
The topic has been locked.
Moderators: Joffm

Lime-years ahead

Online-surveys for every purse and purpose