- Posts: 89
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script src="/survey/upload/surveys/831211/files/jquery-ui.min.js"></script>
minLength: 5,
minLength: 2,
Gib die PLZ ein <link href="/upload/surveys/831211/files/jquery-ui.min.css" rel="stylesheet" type="text/css" /> <script src="/upload/surveys/831211/files/jquery-ui.min.js"></script> <script src="/upload/surveys/831211/files/jquery.csv.min.js"></script> <script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:complete',function() { var url = "/limeSurvey3x/upload/surveys/831211/files/plzort.csv"; 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>
$(document).on('ready pjax:complete',function() { ... });
obviously it was not easier if there arise two more questions.I found it easier with javascript to extract the location string: