Giter Club home page Giter Club logo

ls-cpville's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.