Welcome to the LimeSurvey Community Forum

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

Array Text with autocomplete

  • Juanoche
  • Juanoche's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #156108 by Juanoche
Array Text with autocomplete was created 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.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 8 months ago #156110 by tpartner
Replied by tpartner on topic Array Text with autocomplete
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.
  • Juanoche
  • Juanoche's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #156113 by Juanoche
Replied by Juanoche on topic Array Text with autocomplete
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.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 8 months ago #156114 by tpartner
Replied by tpartner on topic Array Text with autocomplete
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.
  • Juanoche
  • Juanoche's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #156116 by Juanoche
Replied by Juanoche on topic Array Text with autocomplete
Perfect. Thanks again...
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose