- Posts: 48
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
<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> <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() { // Hier wird der Speicherort der Datei angegeben var url = "/upload/surveys/{SID}/files/namen.csv"; var Names = new Array(); $.get(url,function(data){ fullArray = $.csv.toArrays(data); $(fullArray).each(function(i, item){ Names.push(item[0]); }); $('#question{QID} .answer-item:nth-child(2) input[type="text"]').autocomplete({ minLength: 2, source: Names }); }); }); </script>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.