-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
100 lines (99 loc) · 5.07 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
{
"name": "Survey Shuffle",
"namespace": "INTERSECT\\SurveyShuffle",
"description": "Shuffles Surveys; Displays selected surveys to respondents in a random order.",
"framework-version": 12,
"compatibility": {
"php-version-min": "7.3.0"
},
"authors": [
{
"name": "Aidan Wilson",
"email": "aidan.wilson@intersect.org.au",
"institution": "Intersect Australia"
}
],
"project-settings": [
{
"key": "config-description",
"name": "Due to a known issue with branching logic and sub-settings in module configuration, some settings below will only apply for type 'Randomised' and some for type 'From Field'.",
"type": "descriptive"
},
{
"key": "configs",
"name": "Sequence configuration",
"type": "sub_settings",
"repeatable": true,
"sub_settings": [
{
"key": "shuffle-event",
"name": "Event<br><em>Leave blank if not longitudinal or to apply to all events</em>",
"type": "event-list"
},
{
"key": "shuffle-type",
"name": "Shuffle type; use 'Randomised' to select instruments to shuffle and randomly generate a sequence for each survey respondent. If the order is to be determined by a field, such as a previously stored sequence, use 'From field'.<br/><em>Typically you would use the 'Shuffle' type for the first event, and then use the storedm sequence field for subsequent events.</em>",
"type": "dropdown",
"choices": [
{
"value": "random",
"name": "Randomised"
},
{
"value": "field",
"name": "From field"
}
]
},
{
"key": "entry-survey",
"name": "Entry survey; survey whose submission triggers the shuffling of instruments<br/><em>If unset, shuffled instruments will begin displaying after the submission of the initial survey, which itself cannot be shuffled</em>.",
"type": "form-list"
},
{
"key": "exit-survey",
"name": "Exit survey; survey to which to direct respondents when all shuffled surveys have been displayed<br/><em>if unset, survey terminations option of last displayed survey will take effect</em>",
"type": "form-list"
},
{
"key": "descriptive-text",
"name": "Instruments to be shuffled<br/> <em>initial instrument cannot be shuffled</em><br/><strong>Only applies to <em>Randomised</em> shuffle type.</strong>",
"type": "descriptive"
},
{
"key": "shuffle-instruments",
"name": "Instrument",
"type": "form-list",
"repeatable": true
},
{
"key": "shuffle-number",
"name": "Number of instruments to display<br/><em>if empty, less than 1, more than the number of selected instruments, or NaN, then all instruments will be displayed</em><br/><strong>Only applies to <em>Randomised</em> shuffle type.</strong>",
"type": "text"
},
{
"key": "sequence-field",
"name": "Field to be used to store survey sequence<br/><em>typically hidden and readonly; must be designated on the current event if longitudinal</em><br/><strong>Only applies to <em>Randomised</em> shuffle type.</strong>",
"type": "field-list",
"field-type": "text"
},
{
"key": "sequence-field-event",
"name": "Event in which the sequence field is located.<br/><em>Leave blank if not longitudinal or to use current event</em><br/><strong>Only applies to <em>Randomised</em> shuffle type.</strong>",
"type": "event-list"
},
{
"key": "order-field",
"name": "Stored sequence field; field that stores the pre-determined sequence to be used<br/><em>must contain a comma separated list of unique form names</em><br/><strong>Only applies to <em>From Field</em> shuffle type.</strong>",
"type": "field-list",
"field-type": "text"
},
{
"key": "order-field-event",
"name": "Event for the stored sequence field.<br/><em>Leave blank if not longitudinal or to use current event</em><br/><strong>Only applies to <em>From Field</em> shuffle type.</strong>",
"type": "event-list"
}
]
}
]
}