Skip to content

SondagesPro/LS-autoComplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autoComplete : allow to use an external CSV for text question with autocomplete.

Installation

This plugin was tested on LimeSurvey 2.73, 3.15 and 5.4.0 version, must work on all version after 2.50.

Via GIT

  • Go to your LimeSurvey Directory
  • Clone in plugins/autoComplete directory : git clone https://gitlab.com/SondagesPro/QuestionSettingsType/autoComplete.git autoComplete

Via ZIP dowload

  • Get the file autoComplete.zip
  • Extract : unzip autoComplete.zip
  • Move the directory to plugins/ directory inside LimeSurvey

Activate

You just need to activate plugin like other plugin, see Install and activate a plugin for LimeSurvey.

Usage

  • Create a short text, multiple text or array text question, look at advanced settings and open AutoComplete panel
  • autoComplete: Activate this plugin for this question
  • autoCompleteCsvFile: CSV file to be used, attention this csv file must be uploaded in ressources files of the survey. You can use default Survey menu / Resources or the HTML editor : Insert link / Browse server.
  • autoCompleteOneColumn: (only for short text) If you use only the 1st column of the csv file : data and value are in this column. If you use 2 column : data fill the answer, but value are shown to the user.
    • multiple text or array text question use only one column
  • autoCompleteFilter: Adding an extra filter to the returned value. Returned value are filtered by the current value : data (code) must start by this value. The value use Expression Manager.
  • autoCompleteMinChar: Minimum character to start search.
  • autoCompleteRemoveSpecialChar: Remove special character and do the search in lower case (for value) (this function need testing).
  • autoCompleteAsDropdown: Disable javascript search system and show autocomplete as dropdown. This disable the autoCompleteMinChar setting.

Attention With big CSV file : return value can be very long.

Contribute

Issue and pull request are welcome on gitlab.

Translation are managed on translate.sondages.pro, you must register before update string. If you language is not available, open a issue on gitlab.

Home page & Copyright