ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACAD
1
typenamelabelhintrequiredrelevantappearancedefaultconstraint
constraint message
calculationchoice_filterparametersrepeat_countnotetriggerread_only
2
select_one yes_notf_local_veg_yn
Did you eat vegetables from private/community garden or farm in the past month?
yes
3
select_multiple tf_local_vegtf_local_vegWhat type(s) of vegetables?
READ ALL MAIN CHOICES and select ALL relevant choices.
yes${tf_local_veg_yn}=1columns-3
not(selected(${tf_local_veg}, '0') and (count-selected(.)>1)) and
not(selected(${tf_local_veg}, '889') and (count-selected(.)>1)) and
not(selected(${tf_local_veg}, '999') and (count-selected(.)>1))
Cannot select "None", "889" and any other answer.
true()
4
5
begin repeattf_local_veg_repeatVegetable${tf_local_veg_yn}=1
count(instance('tf_local_veg')/root/item)
6
begin groupvegselected(${tf_local_veg}, if (position(..) != 25, string(position(..)), '777'))field-list
7
calculateveg_selected
instance('tf_local_veg')/root/item[position()=position(current()/../..)]/name
8
calculatetf_local_veg_name_calc
instance('tf_local_veg')/root/item[position()=position(current()/../..)]/label
true()
9
texttf_local_veg_name_missingPlease enter the name of missing vegetablesyes${tf_local_veg_name_calc}='Other'
10
calculatetf_local_veg_name_calc_2
if(${tf_local_veg_name_calc}='Other',${tf_local_veg_name_missing},${tf_local_veg_name_calc})
11
integertf_local_veg_num
Approximately how often did you eat <span style='color:green'>${tf_local_veg_name_calc_2} </span> in the last month?
Enter “889” for Don't know or Refused.
yes
.>=0 and .<31 or .=889
Mininum: 0; Maximum: 30
12
end groupveg
13
end repeat
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