ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
typenamelabelhintdefaultappearanceconstraint
constraint message
relevancedisabledrequired
required message
read onlycalculationrepeat_countmedia:imagemedia:audiomedia:videochoice_filternote
response_note
publishable
minimum_seconds
2
startstarttime
3
endendtime
4
deviceiddeviceid
5
subscriberidsubscriberid
6
simserialsimid
7
phonenumberdevicephonenum
8
9
10
integerchild_numHow many children is it in the household?
. > 0 and . <= 10
In this example you can only list up to 10 children
yesSince the two reapeat groups below needs to be the same length, it is important that they both have a pre-determined length. It might be possible to get around this, but that code will be much more complex
11
12
begin repeatchild_rosterChild Roster${child_num}
13
calculatechild_indexindex()
14
textchild_nameWhat is the name of child number ${child_index}?
15
integerchild_ageWhat is the age of child ${child_name}?
. > 0 and . <= 18
Age must be greater than 0 and equal or less than 18. Use age 1 for children under the age of 1.
yes
not(selected(${crops}, filter))
16
end repeatchild_rosterchild roster
17
18
calculatechild_ages
de-duplicate(' ', join(' ', ${child_age}))
19
calculateunique_ages_num
count-selected(${child_ages})
20
calculatechild_name_calc1Child number 1
indexed-repeat(${child_name},${child_roster},1)
Currently the limit of number of children is 10, if that number is added, more slots must be added here and in the choice list where these values are used
21
calculatechild_name_calc2Child number 2
indexed-repeat(${child_name},${child_roster},2)
22
calculatechild_name_calc3Child number 3
indexed-repeat(${child_name},${child_roster},3)
23
calculatechild_name_calc4Child number 4
indexed-repeat(${child_name},${child_roster},4)
24
calculatechild_name_calc5Child number 5
indexed-repeat(${child_name},${child_roster},5)
25
calculatechild_name_calc6Child number 6
indexed-repeat(${child_name},${child_roster},6)
26
calculatechild_name_calc7Child number 7
indexed-repeat(${child_name},${child_roster},7)
27
calculatechild_name_calc8Child number 8
indexed-repeat(${child_name},${child_roster},8)
28
calculatechild_name_calc9Child number 9
indexed-repeat(${child_name},${child_roster},9)
29
calculatechild_name_calc10Child number 10
indexed-repeat(${child_name},${child_roster},10)
30
31
32
begin repeatmother_selectselect mother
${mother_select_repeat_count}
33
calculatemother_indexindex()
34
select_one children
select_mother_presentSelect the child that has the mother present. If the mother of the child listed or none of the mothers of the children listed are not present, select "Not Present"
rank-value(indexed-repeat(${child_age},${child_roster},filter),${child_ages}) = ${unique_ages_num} + 1 - ${mother_index} or filter = 0
35
calculate_here
child_index_mother_present
if(${select_mother_present} = 0,0,${select_mother_present})
36
end repeatmother_select
37
calculatechild_index_selected
max(${child_index_mother_present})
38
calculate
mother_select_repeat_count
if(${child_index_selected}>0,0,${unique_ages_num})
39
calculatechild_name_selected
indexed-repeat(${child_name},${child_roster},${child_index_selected})
40
noteno_selectedNo child was selected
${child_index_selected}=0
41
noteselected_notechild index selected : ${child_index_selected}
child name : ${child_name_selected}
${child_index_selected}>0
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