- Posts: 100
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Look at the select2 minimumInputLength option - select2.org/configuration/options-apiUploaded the that question themes but i need a modification in it when i click on search bar then all list shown below but i need not show the list until i type the related keyword for the same
Is it possible in it
Please Log in to join the conversation.
Please Log in to join the conversation.
Remember: One or two lettersi need search option for both and don't show the inner list when search any 1st 1 to 2 letter then data related option will be visible
Now you talk about "words". So you want to type a word first?if type any word then that word related text will be shown
<link href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" /> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
$(document).on('ready pjax:complete',function() { $('#question{QID} input[type="text"]').autocomplete({ minLength: 5, source: [ "Peter Gunn", "Alfred Miller", "Peter Bond", "Alice Miller", "Peter Stuyvesant", "Carol King" ] }); }); </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-csv/1.0.11/jquery.csv.min.js"></script>
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:complete',function() { var url = "https://www.myserver.de/myFolder/myFile.csv"; // or the "files" folder of the survey var Names = new Array(); $.get(url,function(data){ fullArray = $.csv.toArrays(data); $(fullArray).each(function(i, item){ Names.push(item[0]); }); $("#question{QID} input[type=text]").autocomplete({ minLength: 2, source: Names }); }); }); </script>
Please Log in to join the conversation.
In my opinion : the best one today are gitlab.com/SondagesPro/QuestionSettingsT...tQuestionByResponses : more quick (read by DB), you can easily manage the list via admin GUI, etc …But nevertheless there are other options.
Have a look at the library "easy-autocomplete" (just google it) or Denis' autocomplete plugin
[url] gitlab.com/SondagesPro/QuestionSettingsType/autoComplete [/url]
Please Log in to join the conversation.