String #
The string
field generates a field for entering strings. Multiline string
values are allowed by enableing this property.

Single line string

Multi line string
Properties #
property | value type | optional | description |
---|---|---|---|
key | string | mandatory | Keys are for internal use and must be unique |
title | string | optional | The title of the element |
tip | string | optional (default: null) | Text entered here with markdown formatting is displayed as context help in an overlay box |
default | string | optional (default: null) | default value when the key is not set yet |
multiLine | boolean | optional (default: false) | Enable multi line value |
txtInsertButtons | array of strings | optional | Array with strings of which quick text insert buttons are created |
Sample 1 #
Configuration #
./quiqr/model/base.
key: sample_field
multiLine: true
title: Sample field
type: string
key = "sample_field"
multiLine = true
title = "Sample field"
type = "string"
{
"key": "sample_field",
"multiLine": true,
"title": "Sample field",
"type": "string"
}
Output #
sample_field: |-
Some multiline
string value
Sample 2: #
Configuration #
./quiqr/model/base.
key: sample_field
title: Sample field
txtInsertButtons:
- "YES"
- "NO"
- MAYBE
type: string
key = "sample_field"
title = "Sample field"
txtInsertButtons = ["YES", "NO", "MAYBE"]
type = "string"
{
"key": "sample_field",
"title": "Sample field",
"txtInsertButtons": [
"YES",
"NO",
"MAYBE"
],
"type": "string"
}
Output #
sample_field: YES