-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
137 lines (137 loc) · 4.66 KB
/
config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"name": "Requested and Required Fields",
"tt_name": "name",
"namespace": "INTERSECT\\RequestedAndRequiredFields",
"description": "Provides functionality for requesting a response to a field, and displays a warning to survey respondents if any requested fields are missing a value. For completeness, this module also allows required fields to be treated in the same way. Fields can be annotated with @REQUESTED or @REQUIRED, both of which take an optional description, which is shown to the user. If the description is omitted, the field label is shown instead.",
"tt_description": "description",
"framework-version": 14,
"authors": [
{
"name": "Aidan Wilson",
"email": "[email protected]",
"institution": "Intersect Australia"
}
],
"action-tags": [
{
"tag": "@REQUESTED",
"description": "Displays a modal window if the annotated field is empty when the respondent attempts to submit, but allows the respondent to submit regardless (unless there are @REQUIRED fields). With a description provided by @REQUESTED=\"description\", the description is shown in the modal. Otherwise, the field label is shown."
},
{
"tag": "@REQUIRED",
"description": "Displays a modal window if the annotated field is empty when the respondent attempts to submit, and prevents submission. With a description provided by @REQUIRED=\"description\", the description is shown in the modal. Otherwise, the field label is shown."
}
],
"project-settings": [
{
"key": "designer-required",
"tt_name": "designer-required",
"name": "Apply to fields marked as required in the project metadata?",
"type": "checkbox"
},
{
"key": "modal-title",
"tt_name": "modal-title",
"name": "Modal title<br/>Title of window that pops up alerting the user to missing fields.<br/><em>Default: Action Required!</em>",
"type": "text"
},
{
"key": "modal-requested-header",
"tt_name": "modal-requested-header",
"name": "Requested text<br/><em>Default: The following fields are requested, although you may submit without completing them:</em>",
"type": "text"
},
{
"key": "modal-required-header",
"tt_name": "modal-required-header",
"name": "Required text<br/><em>Default: The following fields are required:</em>",
"type": "text"
},
{
"key": "modal-footer-norequired",
"tt_name": "modal-footer-norequired",
"name": "Footer text (no required fields)<br/><em>Default: Do you want to proceed with the submission?</em>",
"type": "text"
},
{
"key": "modal-footer-required",
"tt_name": "modal-footer-required",
"name": "Footer text (required fields)<br/><em>Default: You must complete all required fields before continuing.</em>",
"type": "text"
},
{
"key": "modal-cancel",
"tt_name": "modal-cancel",
"name": "Cancel button text<br/><em>Default: Review Response</em>",
"type": "text"
},
{
"key": "modal-submit",
"tt_name": "modal-submit",
"name": "Submit button text<br/><em>Default: Submit Now</em>",
"type": "text"
},
{
"key": "highlight",
"tt_name": "highlight",
"name": "Highlight fields after displaying warning?",
"type": "checkbox"
},
{
"key": "requested-hlcolour",
"tt_name": "requested-hlcolour",
"name": "Highlight colour for requested fields<br/><em>Default: light blue</em>",
"branchingLogic": {
"field": "highlight",
"value": true
},
"type": "color-picker"
},
{
"key": "required-hlcolour",
"tt_name": "required-hlcolour",
"name": "Highlight colour for required fields<br/><em>Default: light red</em>",
"branchingLogic": {
"field": "highlight",
"value": true
},
"type": "color-picker"
},
{
"key": "disable-greenhl",
"tt_name": "disable-greenhl",
"name": "Disable green highlight<br/><em>This can conflict visually with requested and required field highlighting</em>",
"branchingLogic": {
"field": "highlight",
"value": true
},
"type": "checkbox"
},
{
"key": "show-requested",
"tt-name": "show-requested",
"name": "Label requested fields",
"type": "checkbox"
},
{
"key": "requested-label",
"tt_name": "requested-label",
"name": "Requested field label text<br/><em>Default: * response requested</em>",
"branchingLogic": {
"field": "show-requested",
"value": true
},
"type": "text"
},
{
"key": "requested-label-colour",
"tt_name": "requested-label-colour",
"name": "Requested field label colour<br/><em>Default: blue</em>",
"branchingLogic": {
"field": "show-requested",
"value": true
},
"type": "color-picker"
}
]
}