Hi,
if you enter code, please use the button to insert a well formatted code
Nevertheless, you'd better send the lss export of these relevant questions. (copy the survey, remove everything not related, and send lss export of the rest)
And I wonder why you didn't use the - more or less - standard in LimeSurvey to insert an "autocomplete"
1. The plugin (here I have to admit that it is really really slow when there are more then 500 entries)
2. The solution with the library "/jquery.csv.min.js".
There are more than 9000 zip codes in the file and it works without noticable delay.
It's only this code
Code:
<link href="/lime6/upload/surveys/{SID}/files/jquery-ui.min.css" rel="stylesheet" />
<script src="/lime6/upload/surveys/{SID}/files/jquery-ui.min.js"></script>
<script src="/lime6/upload/surveys/{SID}/files/jquery.csv.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:complete',function() {
var url = "/lime6/upload/surveys/{SID}/files/plzort.csv";
var PLZ = new Array();
$.get(url,function(data){
fullArray = $.csv.toArrays(data);
$(fullArray).each(function(i, item){
PLZ.push(item[0]);
});
$("#question{QID} input[type=text]").autocomplete({
minLength: 2,
source: PLZ
});
});
});
</script>
Unfortunately we do not know which question type you want to use - a simple dropdown, or an "array(text)" or dropdowns in a "multiple short text" question, you'd send the lss export.
BTW: Here the example with your file.
Best regards
Joffm
It is also possible to use the "array" solution, as your file is rather small.
You find all this here in the manual:
[url]
www.limesurvey.org/manual/Workarounds:_M...for_LimeSurvey_2.05+
[/url]