Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 3.26 KB

README.md

File metadata and controls

62 lines (42 loc) · 3.26 KB

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