search box in dropdown

More
2 months 2 weeks ago #173195 by tpervaiz
tpervaiz created the topic: search box in dropdown
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

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #173199 by tpartner
tpartner replied the 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.

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #173205 by tpervaiz
tpervaiz replied the 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:

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago - 2 months 2 weeks ago #173207 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 2 months 2 weeks ago by DenisChenu.

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #173208 by tpervaiz
tpervaiz replied the topic: search box in dropdown
How can I use the alternative..Can you provide me the steps to use above

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago - 2 months 2 weeks ago #173212 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 2 months 2 weeks ago by DenisChenu.

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #173244 by tpervaiz
tpervaiz replied the 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:

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #173252 by tpervaiz
tpervaiz replied the 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>
Attachments:

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago - 2 months 2 weeks ago #173266 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 2 months 2 weeks ago by DenisChenu.

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago #173313 by tpervaiz
tpervaiz replied the topic: search box in dropdown
Font know why csv files are not uploading in survey resources...is there any particular format?

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago #173316 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago #173318 by tpervaiz
tpervaiz replied the 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
Attachments:

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago #173319 by DenisChenu
DenisChenu replied the topic: search box in dropdown
Not ressource, as file.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago #173384 by tpervaiz
tpervaiz replied the topic: search box in dropdown
Thanks for your help as I am able to upload the plugin by pasting the file in path directly e.g upload\surveys\surveyid\files

now when ever I am using the plugin along with conditions. All conditions in the survey don't work. Is there any step which I am missing?

Attached is the ISS file of the survey along with csv which I am using for auto complete
Attachments:

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!