Welcome to the LimeSurvey Community Forum

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

search box in dropdown

  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 7 months ago #173195 by tpervaiz
search box in dropdown was created by tpervaiz
Is it possible to add search box as in survey which i have created has a dropdown list of 2000 records so it will be really hard for user to select the required record
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #173199 by tpartner
Replied by tpartner on topic search box in dropdown
You could use the jQuery Autocomplete workaround - manual.limesurvey.org/Workarounds:_Manip...r_LimeSurvey_2.05.2B

Note that in LS 3.x, you will need to create a custom survey (or question) theme that includes jQuery UI - www.limesurvey.org/forum/development/114...-autocomplete#165287

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 7 months ago #173205 by tpervaiz
Replied by tpervaiz on topic search box in dropdown
Thanks for reply but I just need help to register the files in config.xml as I am new to this

jQuery-UI (which includes the autocomplete widget) is not included in the core themes for 3.4.x. You need to add it to a custom theme.

1) Extend a core theme as described here - manual.limesurvey.org/New_Template_System_in_LS3.x .

2) Download jQuery-UI - jqueryui.com/download/ . Extract the files.

3) Upload the extracted jquery-ui.min.js to /upload/themes/survey/yourThemeName/scripts/.

4) Upload the extracted jquery-ui.min.css to /upload/themes/survey/yourThemeName/css/.

5) Register the new files by including them in the <files> block of /upload/themes/survey/yourThemeName/config.xml something like this:
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago - 5 years 7 months ago #173207 by DenisChenu
Replied by DenisChenu on topic search box in dropdown
We have already an good jquery-ui alternative for autocomplete : github.com/LimeSurvey/LimeSurvey/blob/49...third_party.php#L412

Usage : github.com/LimeSurvey/LimeSurvey/blob/49.../scripts/map.js#L229

I already have some autocomplete plugin but not public currently.

EDIT :
gitlab.com/SondagesPro/autoComplete

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 5 years 7 months ago by DenisChenu.
The topic has been locked.
  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 7 months ago #173208 by tpervaiz
Replied by tpervaiz on topic search box in dropdown
How can I use the alternative..Can you provide me the steps to use above
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago - 5 years 7 months ago #173212 by DenisChenu
Replied by DenisChenu on topic search box in dropdown
1: download the plugin gitlab.com/SondagesPro/autoComplete
2: install and activate the plugin : extensions.sondages.pro/about/install-an...-for-limesurvey.html
3: import included survey gitlab.com/SondagesPro/autoComplete/tree/master/demo
4: in this survey ressource import included csv file
5: check the question settings (in the demo survey) to understand gitlab.com/SondagesPro/autoComplete/blob...utoComplete.php#L209

Remind : plugin must work on 3.14 version but was roughly tested with 2.73 version

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 5 years 7 months ago by DenisChenu.
The topic has been locked.
  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 7 months ago #173244 by tpervaiz
Replied by tpervaiz on topic search box in dropdown
I have activated a plugin however when I am trying to import the demo survey getting an error as shown in the attachment
Attachments:
The topic has been locked.
  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 7 months ago #173252 by tpervaiz
Replied by tpervaiz on topic search box in dropdown
Now I have registered jquery in my system. I just need help to upload csv file to upload through resources as I have confused that which format the system will accept as its giving me error all the time I try to upload the csv file.

I have attached the survey structure and the csv file which i am uploading. Can someone check what I am missing

The code applied in question is:

<script type="text/javascript" charset="utf-8">

$(document).ready(function() {

var q1ID = q1;

$('#question'+q1ID+' input[type="text"]').autocomplete({
minLength: 8, // This line is optional, signifies number of keystrokes before autocomplete is initiated
source: ["Test1"]
});

});

</script>
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago - 5 years 7 months ago #173266 by DenisChenu
Replied by DenisChenu on topic search box in dropdown

tpervaiz wrote: I have activated a plugin however when I am trying to import the demo survey getting an error as shown in the attachment

No issue for me : master.sondages.pro/794683?newtest=Y&lang=fr

What is your LimeSurvey version ? Can you check you have same lss file then the one here gitlab.com/SondagesPro/autoComplete/raw/...rvey_survey_demo.lss

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 5 years 7 months ago by DenisChenu.
The topic has been locked.
  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 7 months ago #173313 by tpervaiz
Replied by tpervaiz on topic search box in dropdown
Font know why csv files are not uploading in survey resources...is there any particular format?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #173316 by DenisChenu
Replied by DenisChenu on topic search box in dropdown

tpervaiz wrote: Font know why csv files are not uploading in survey resources...is there any particular format?

Maybe someone diable csv upload in your config.php

It's available by default : github.com/LimeSurvey/LimeSurvey/blob/c2...fig-defaults.php#L89

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpervaiz
  • tpervaiz's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 7 months ago #173318 by tpervaiz
Replied by tpervaiz on topic search box in dropdown
I just checked the permissions and its ok... however when ever I am uploading the file the error in attachment I receive
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose