- Posts: 19
- Thank you received: 4
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.
<?xml version="1.0" encoding="UTF-8"?> <config> <metadata> <name>Autocomplete</name> <type>plugin</type> <creationDate>2016-11-04</creationDate> <lastUpdate>2021-11-12</lastUpdate> <author>Denis Chenu</author> <authorUrl>https://www.sondages.pro</authorUrl> <version>2.2.1</version> <license>GNU Affero General Public License v3.0</license> <description><![CDATA[Autocomplete]]></description> </metadata> <compatibility> <version>5</version> <version>3</version> <version>2.73</version> </compatibility> </config>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
<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() { var url = "/upload/surveys/{SID}/files/names.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]:eq(0)").autocomplete({ minLength: 2, source: Names }); });});</script>
Please Log in to join the conversation.
<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() { var url = "/upload/surveys/{SID}/files/names.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]:eq(0)").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.