| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | type | name | label | hint | required | relevant | appearance | default | constraint | constraint message | calculation | choice_filter | parameters | repeat_count | note | trigger | read_only | ||||||||||||||
2 | select_one yes_no | tf_local_veg_yn | Did you eat vegetables from private/community garden or farm in the past month? | yes | |||||||||||||||||||||||||||
3 | select_multiple tf_local_veg | tf_local_veg | What type(s) of vegetables? | READ ALL MAIN CHOICES and select ALL relevant choices. | yes | ${tf_local_veg_yn}=1 | columns-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 repeat | tf_local_veg_repeat | Vegetable | ${tf_local_veg_yn}=1 | count(instance('tf_local_veg')/root/item) | ||||||||||||||||||||||||||
6 | begin group | veg | selected(${tf_local_veg}, if (position(..) != 25, string(position(..)), '777')) | field-list | |||||||||||||||||||||||||||
7 | calculate | veg_selected | instance('tf_local_veg')/root/item[position()=position(current()/../..)]/name | ||||||||||||||||||||||||||||
8 | calculate | tf_local_veg_name_calc | instance('tf_local_veg')/root/item[position()=position(current()/../..)]/label | true() | |||||||||||||||||||||||||||
9 | text | tf_local_veg_name_missing | Please enter the name of missing vegetables | yes | ${tf_local_veg_name_calc}='Other' | ||||||||||||||||||||||||||
10 | calculate | tf_local_veg_name_calc_2 | if(${tf_local_veg_name_calc}='Other',${tf_local_veg_name_missing},${tf_local_veg_name_calc}) | ||||||||||||||||||||||||||||
11 | integer | tf_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 group | veg | |||||||||||||||||||||||||||||
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 |