I have a survey that I use twice a year. One survey I used autocomplete and it worked perfectly. I just added the simple script in the source area.
In the second survey I have almost 10,000 names in the autocomplete and it's too big for the source area.
So, I added the list to the /template.js file.
Code:
var doAutocomplete = function() {
var qID = 8;
$('#question'+qID+' input[type="text"]').autocomplete({
minLength: 2, // This line is optional, signifies number of keystrokes before autocomplete is initiated
source: dentistNames
});
};
var dentistNames = [
"My","giant","list","of","names"
];
and in the source area of the question I added
Code:
Choose your Top Dentists - Select up to three (3) per specialty
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){doAutocomplete()});
</script>
And for some reason I cannot get it to work.
Can anyone see what I might have missed? Here is a link to an exact replica of the question:
phoenixmag.limequery.com/371455?newtest=Y&lang=en
Thank you for looking.
-Matt