Giter Club home page Giter Club logo

table-list's Introduction

Table list

table-list field plug-in

Description

This field plug-in allows for choice lists to be presented in the form of a table. The table can be created from correctly formatted static or pre-loaded choices. The table further allows for sorting for each column and also searching for across the table. See the Parameters section below.

Download now

Default SurveyCTO feature support

Feature / Property Support
Supported field type(s) select_one select_multiple
Default values No
Custom constraint message Yes
Custom required message Yes
Read only No

Using multiple pre-load data columns as labels with the search() function is also not supported. Instead, you will store a delimited table in a single column of pre-load data. See below and the wiki for more.

How to use

  1. Download the test form extras/sample-form from this repo and upload it to your SurveyCTO server.
  2. Download the table-list.fieldplugin.zip file from this repo, and attach it to the test form on your SurveyCTO server.
  3. Make sure to provide the correct parameters (see below).

Parameters

Key Value
delimiter Used to set the delimiter used in the choice label column (or column of pre-loaded data that contains the table).
headers A comma separated list of table headers. The number of these should match the expected number of columns in the choice label column (or column of csv or dataset)

Example:
If you have an appearance of custom-table-list(delimiter='|', headers = 'ID, Description, Colour') the corresponding choice list could look like this:

list_name value label
product 1 1 | Digissim | Blue

The values in the label column will fall under the columns represented by the values in the headers parameter. This will display the table below.

ID Description Colour
1 Digissim Blue

You can read more about how to use this plugin here (includes a downloadable step-by-step breakdown of using this field plug-in).

More resources

table-list's People

Contributors

amrikcooper avatar mofya1 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

table-list's Issues

When trying to add new options, the selection restarts

Situation
In our questionnaire, we have one question with type "select_multiple" and appearance "custom-table-list(delimiter='|',headers='ID,Name,Region,Acronym'). The result of this selection is used in several other fields.

Problem
When you make your selection in the first run it looks okay. However, if you continue and later you try to go back and select an extra option, when you click it erases all the options you had selected before, meaning that you start afresh.

This is a bit of an inconvenience in our case, because we might be doing a selection of 5-10 items, and it's not uncommon that the enumerator need to go back to this question and add more choices, but in the current situation, every time they want o add something they need to start all over again.

We are using the result of this selection as input in other fields, and it is possible that this is what's creating the problem, so I am attaching the questionnaire definition form with the section affected by this issue.

I hope this information is enough. Please let me know if you need extra details. We are using SurveyCTO collect 2.7.

Thank you!
select_multiple_table_bug.xlsx

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.