Skip to content

Allow to use a multi text question type for 'town and postal code search'.

License

Notifications You must be signed in to change notification settings

LFavier/LS-cpVille

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cope postal - Ville

Allows the use of multi text questions to get a Postal code, town name and Insee code. Users have an autocomplete helper to search for the town (only French town at the moment).

Installation

Via GIT

  • Go to your LimeSurvey Directory (version up to 2.05)
  • Clone in the plugins/cpVille directory

Via ZIP dowload

Setup and activation

  • During activation a new table is created and data is set up in this table.
  • If your host has very little time allowed for PHP scripts : you can send yourself the DB
  • You can set up the DB table yourself : its name must be lime_cpville_insee_cp (lime_ must be replaced by your prefix) and have the columns "insee", "nom", "cp", and "nomsimple".
  • You can add another column : this can prefill specific subquestions with the same code.
  • If needed : you can update the database your way.

Documentation

In a multi text question type : set up a Sub question with the code "SaisieVille" and it will automatically launch a system to

  • Allow users to search for postal codes or part of town name to fill in the sub question
  • Fill an Extra sub question whose code is "CodePostal" with the postal code
  • Fill an Extra sub question whose code is "Insee" with the Insee code
  • Fill an Extra sub question whose code is "Nom" with the town name
  • Fill an Extra sub question whose code is a column name of the DB table (you can test with "region" or "departement")

Plugin settings allow admin users to

  • Update the default sub question code and use awn code
  • Choose the maximum number of lines returned
  • Choose if extra sub questions are shown or not
  • Choose what to show to users and what to save in the database of LimeSurvey

For users, some help is provided

  • Search on postal code if only numbers are entered
  • Search on multiple parts : example villen asc

Home page & Copyright

Code

Data

About

Allow to use a multi text question type for 'town and postal code search'.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 87.9%
  • JavaScript 9.8%
  • CSS 2.3%