How the field is displayed to the labeler in the Label Set extension
Required
Yes
Is the question required to be answered by the labeler before proceeding?
Examples of each question type are provided below.
Text Field
1
{
2
"type":"TEXT",
3
"config":{
4
"multiple":true
5
},
6
"name":"Author",
7
"label":"Author",
8
"required":true
9
}
Copied!
Text Area
1
{
2
"type":"TEXT",
3
"config":{
4
"multiline":true,
5
"multiple":true
6
},
7
"name":"Quick Review",
8
"label":"Simple Review",
9
"required":true
10
}
Copied!
Dropdown
1
{
2
"type":"DROPDOWN",
3
"config":{
4
"multiple":true,
5
"options":[
6
{
7
"id":"1",
8
"label":"Fiction"
9
},
10
{
11
"id":"2",
12
"label":"Non fiction"
13
}
14
]
15
},
16
"name":"Genre",
17
"label":"Genre",
18
"required":true
19
}
Copied!
Hierarchical Dropdown
1
{
2
"type":"HIERARCHICAL_DROPDOWN",
3
"config":{
4
"multiple":true,
5
"options":[
6
{
7
"id":"1",
8
"label":"A"
9
},
10
{
11
"id":"2",
12
"label":"B",
13
"parentId":"1"
14
},
15
{
16
"id":"3",
17
"label":"C"
18
},
19
{
20
"id":"4",
21
"label":"D",
22
"parentId":"3"
23
}
24
]
25
},
26
"name":"Q4",
27
"label":"Question 4",
28
"required":false
29
}
Copied!
Date
1
{
2
"type":"DATE",
3
"config":{
4
"format":"DD/MM/YYYY"
5
},
6
"name":"Publication Date",
7
"label":"Publication Date",
8
"required":true
9
}
Copied!
Time
1
{
2
"type":"TIME",
3
"config":{
4
"format":"HH:mm"
5
},
6
"name":"Best Time Reading",
7
"label":"Best Time to Read",
8
"required":true
9
}
Copied!
Slider
You can set step to adjust the slider increment value.
1
{
2
"type":"SLIDER",
3
"config":{
4
"min":1,
5
"max":10,
6
"step":1
7
},
8
"name":"Rate",
9
"label":"How would you rate this book?",
10
"required":false
11
}
Copied!
Grouped Attributes
You can create questions nested within other questions. This example creates two sub text fields (ex: Age and Sub-genre) inside a question (ex: Type). For now we only limit nested questions to two levels of depth.