Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Autocomplete help

Autocomplete help 3 years 1 day ago #98485

  • John_T
  • John_T's Avatar
Hello all,

I'm having problems trying to set an autocomplete function for a question on the country of residence.

I use the code below to give the automated responses for Australia, Brazil and Canada. However this code creates an unwanted text field to which is applied the autocomplete - what I would like to do is remove this text field and apply the autocomplete function to the response field (see attached image).

As you can probably tell, I haven't a clue with html but would like to learn !

Many thanks in advance


<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>autocomplete Demo</title>
<link rel="stylesheet" href="">
<script src=""></script>
<script src=""></script>
<label for="autocomplete">
<input id="autocomplete">
$( "#autocomplete" ).autocomplete({
source: [ "Australia", "Brazil", "Canada"]

Attachment autocompleteex.png not found

The administrator has disabled public write access.

Autocomplete help 3 years 23 hours ago #98490

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1790
  • Thank you received: 439
  • Karma: 110

EM Variables => | EM Roadmap =>
All LS releases => | 2.06lts =>
Demo surveys => (already included in /docs/demosurveys)
The administrator has disabled public write access.
The following user(s) said Thank You: John_T

Autocomplete help 3 years 22 hours ago #98492

  • John_T
  • John_T's Avatar
Merci beaucoup, ca marche !
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.233 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form