Key Configuration
The configuration of a Key is stored in a JSON format in the
configuration field of configuration.models.Key.
Hint
The configuration of the key in the database cannot be overwritten in the questionnaire configuration. The same key can be used multiple times and in several questionnaires so any changes should be done carefully.
Format
The basic format of the configuration is as follows:
{
"type": "TYPE"
}
type
The following options are valid for type. Default type is char.
|
A simple textfield for short text, with the label above the field. |
|
A textarea for larger text |
|
A field for boolean values Yes (stored as |
|
A field to select measure values (e.g. low, medium, high). Also allows null values. Renders as button group. The values of This type requires values related to the key to be present in the database. |
|
A simple checkbox list to allow the selection of multiple values. Renders as checklist. This type requires values related to the key to be present in the database. |
|
A checkbox list with images to allow the selection of multiple values. Renders as checklist with images. This type requires values related to the key to be present in the database and to have a valid image_name configuration. |
|
A select field which allows selection by typing. Renders the field with Chosen. |
|
A simple select field without typing. |
|
Basically a boolean field but rendered as a single checkbox (selected = true, not selected = false). |
|
A datepicker field. |
|
A field to upload any file (as opposed to |
|
A field to upload an image. |
|
A hidden input field. |
|
A set of radio buttons, needs values. |
|
A special field which allows to select a user. |
|
A special field which allows to select another questionnaire. |
|
A field rendered as input type=”number”, the validation makes sure it contains only integers. |
|
A field rendered as input type=”number”, can contain decimal numbers |
|
A select field similar to |
|
A field rendered as hidden in the form, but displayed like a textfield in the details. |