Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Array Text with autocomplete

More
8 years 2 months ago #156108 by Juanoche
Hi, I'm using "autocomplete" in an array text but, does anyone know how I could do it to only affects one single column or even one single field??

Regards
The topic has been locked.
More
8 years 2 months ago #156110 by tpartner
Can you give a link to an active test survey so we can see the source and your code?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 2 months ago #156113 by Juanoche
Here it is markin.org/limesurvey/index.php/397519?lang=es . I want to use "autocomplete" only in the first column (nombre) if possible

Thanks for your help
The topic has been locked.
More
8 years 2 months ago #156114 by tpartner
Try changing this line in your script:
Code:
$('#question'+qID+' input[type="text"]').autocomplete({


To this:
Code:
$('#question'+qID+' input[type="text"][id$="_SQ001"]').autocomplete({

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 2 months ago #156116 by Juanoche
Perfect. Thanks again...
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose