| A | B | C | D | E | F | G | H | J | K | L | M | N | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | type | name | label | audio | hint | appearance | choice_filter | constraint | constraint-msg | default | readonly | relevant | required |
2 | note | intro | This form showcases a form split into multiple pages The hints explain how these widgets were created. The form logo was added by simply uploading a file called form_logo.png in the Media section of the form settings page in an aggregate server like Formhub or Ona | ||||||||||
3 | |||||||||||||
4 | begin_group | text_widgets | Text widgets | ||||||||||
5 | text | my_string | Text widget | Can be short or long but always one line (type = text) | |||||||||
6 | text | my_long_text | Multiline Text widget in enketo (in ODK collect this a normal text field) | Can be multiple lines (type=text, appearance = multiline) | multiline | ||||||||
7 | end_group | ||||||||||||
8 | |||||||||||||
9 | begin_group | number_widgets | Number widgets | ||||||||||
10 | integer | my_int | Integer widget (try entering a number > 10) | This field has a constraint (type=integer, constraint=.<10) | . < 10 | Requires a number less than 10 | |||||||
11 | decimal | my_decimal | Decimal widget (allows only number > 10.51 and < 18.39) | This field has a constraint (type=decimal, constraint=. > 10.51 and . < 18.39) | . > 10.51 and . < 18.39 | Requires a number between 10.51 and 18.39 | 18.31 | ||||||
12 | end_group | ||||||||||||
13 | |||||||||||||
14 | begin_group | date_time_widgets | Date and time widgets | ||||||||||
15 | date | my_date | Date widget (this one allows only future dates and has a default value) | This field has a constraint (type=date, constraint=.>= today()) | . >= today() | Requires a date that is not before today | 2010-06-15 | ||||||
16 | date | my_date_month_year | Month-year widget | Simply specify an appearance style (type=date, appearance=month-year) | month-year | ||||||||
17 | date | my_date_year | Year widget (year only) | Simply specify and appearance style (type=date, appearance=year) | year | ||||||||
18 | time | my_time | Time widget | Times are easy! (type=time) | |||||||||
19 | dateTime | dateTime | Date and time widget | For exact times, will be converted to UTC/GMT (type=dateTime) | |||||||||
20 | end_group | ||||||||||||
21 | |||||||||||||
22 | begin_group | select_widgets | Basic Select widgets | ||||||||||
23 | select_multiple list | my_select | Select multiple widget (don't pick c and d together) | Using a list specified in the choices worksheet (type=select_multiple list) | not(selected(., 'c') and selected(., 'd')) | You cannot select c and d both | a c | ||||||
24 | select_multiple list | select_horizontal_compact | Select multiple widget displaying horizontally (in Enketo) | (type = select_multiple, appearance=horizontal-compact) | horizontal-compact | ||||||||
25 | select_multiple list2 | select_horizontal | Select one displaying horizontally but in columns (in Enketo) | (type=select_multiple, appearance=horizontal) | horizontal | ||||||||
26 | select_one list2 | my_select1 | Select one widget | Scroll down to see default selection (type=select_one list2, default=8) | 8 | ||||||||
27 | select_one yes_no | select1_horizontal_compact | Select one displaying compactly and horizontally (in Enketo) | (type=select_one, appearance=horizontal-compact) | horizontal-compact | ||||||||
28 | select_one list2 | select1_horizontal | Select one displaying horizontally but in columns (in Enketo) | (type=select_one, appearance=horizontal) | horizontal | ||||||||
29 | select one agree5 | select1_likert | Likert widget | (type=select_one, appearance=likert) | likert | ||||||||
30 | select_one list | spinner | Spinner widget: select one | Showing a pull-down list of options (type=select_one list, appearance=minimal) | minimal | ||||||||
31 | select_multiple list | spinner_all | Spinner widget: select multiple | Showing a pull-down list of options (type=select_multiple list, appearance=minimal) | minimal | ||||||||
32 | select_one list | selectadvance | Select widget - auto advance | Advance to the next question immediate after selection in ODK Collect. (type=select_one list, appearance=quick) | quick | ||||||||
33 | select_one a_b | grid_test | Grid select one widget | Make sure to put a.jpg and b.jpg in the form-media folder to see images here. (type=select_one a_b, appearance=compact) | compact | ||||||||
34 | select_one a_b | grid_test_audio | Grid auto-advance widget | Same as previous but this one advances to the next question automatically in ODK Collect. (type=select_one a_b, appearance=quickcompact) | quickcompact | ||||||||
35 | begin_group | table_list_test | List group | Shows all questions on one page in ODK Collect (appearance=field-list) | field-list | ||||||||
36 | select_one yes_no | table_list_test_label | Table | Show only the labels of these options and not the inputs (type=select_one yes_no, appearance=label) | label | ||||||||
37 | select_one yes_no | table_list_1 | Q1 | Show only the inputs of these options and not the labels (type=select_one yes_no, appearance=list-nolabel) | list-nolabel | ||||||||
38 | select_one yes_no | table_list_2 | Question 2 | Show only the inputs of these options and not the labels (type=select_one yes_no, appearance=list-nolabel) | list-nolabel | ||||||||
39 | end group | ||||||||||||
40 | begin group | table_list_test2 | Table (made with an easier method) | A much easier way to do the same (appearance=table-list) but it may slow down your form a bit. | table-list | ||||||||
41 | select_one yes_no | table_list_3 | Q1 | No need to do anything special here | |||||||||
42 | select_one yes_no | table_list_4 | Question 2 | No need to do anything special here | |||||||||
43 | end_group | ||||||||||||
44 | begin group | happy_sad_table_2 | Table with image labels | Shows all questions on one page in ODK Collect (appearance=field-list) | field-list | ||||||||
45 | select_multiple happy_sad | happy_sad_second_method | Select mood | Show only the labels of these options and not the inputs (type=select_one yes_no, appearance=label) | label | ||||||||
46 | select_multiple happy_sad | happy_sad_brian2 | Brian | Show only the inputs of these options and not the labels (type=select_one yes_no, appearance=list-nolabel) | list-nolabel | ||||||||
47 | select_multiple happy_sad | happy_sad_michael2 | Michael | Show only the inputs of these options and not the labels (type=select_one yes_no, appearance=list-nolabel) | list-nolabel | ||||||||
48 | end group | ||||||||||||
49 | begin group | happy_sad_table | Table with image labels (made using an easier method) | A much easier way to do the same (appearance=table-list) | table-list | ||||||||
50 | select_multiple happy_sad | happy_sad_brian | Brian | ||||||||||
51 | select_multiple happy_sad | happy_sad_michael | Michael | ||||||||||
52 | end group | ||||||||||||
53 | end_group | ||||||||||||
54 | |||||||||||||
55 | begin_group | cascading_widgets | Cascading Select widgets | ||||||||||
56 | begin_group | group1 | Cascading Selects with Radio Buttons | ||||||||||
57 | select_one countries | country | Country | ||||||||||
58 | select_one cities | city | City | Using a choice filter to update options based on a previous answer (choice_filter: country = ${country}) | country=${country} | ||||||||
59 | select_one neighborhoods | neighborhood | Neighborhood | Using a choice filter to update options based on previous answers (choice_filter: country = ${country} and city = ${city}) | country=${country} and city=${city} | ||||||||
60 | end_group | ||||||||||||
61 | begin_group | group2 | Cascading Selects with Pulldowns | ||||||||||
62 | select_one countries | country2 | Country | (appearance: minimal) | minimal | ||||||||
63 | select_one cities | city2 | City | Using a choice filter to update options based on a previous answer (choice_filter: country = ${country2}, appearance: minimal) | minimal | country=${country2} | |||||||
64 | select_one neighborhoods | neighborhood2 | Neighborhood | Using a choice filter to update options based on previous answers (choice_filter: country = ${country2} and city = ${city2}, appearance = minimal) | minimal | country=${country2} and city=${city2} | |||||||
65 | end_group | ||||||||||||
66 | end_group | ||||||||||||
67 | |||||||||||||
68 | begin_group | geopoint_widgets | GPS widgets | ||||||||||
69 | geopoint | my_geopoint | Geopoint widget | This will record the gps location. In enketo it also shows a map. (type=geopoint) | |||||||||
70 | geopoint | locationMap | Geopoint with map Widget | This will record the gps location. In enketo is is the same as the previous. (type=geopoint, appearance=maps) | maps | ||||||||
71 | end_group | ||||||||||||
72 | |||||||||||||
73 | begin_group | media_widgets | Media input widgets | ||||||||||
74 | image | my_image | Image widget | This will launch the camera. Not supported in enketo at the moment (type=image) | |||||||||
75 | audio | my_audio | Audio widget | This will launch the audio recorder. Not supported in enketo at the moment (type=audio) | |||||||||
76 | video | my_video | Video widget | This will launch the video recorder. Not supported in enketo at the moment (type=video) | |||||||||
77 | barcode | my_barcode | Barcode widget | Scans multi-format 1d/2d barcodes. In enketo it allows manual entry (type=barcode) | |||||||||
78 | end_group | ||||||||||||
79 | |||||||||||||
80 | begin_group | display_widgets | Display widgets | ||||||||||
81 | note | my_output | Note widget. In notes you can emphasize _words_ or _multiple words_ or __strongly emphasize something__. You can also use a line break to start a new sentence. The decimal number you entered was ${my_decimal}. | This is a note and it uses a value of another field in its label (type=note) | yes | ||||||||
82 | text | text_media | You can add a sound recording, an image and a video to any input label or to a note. | goldeneagle.mp3 | Add the file name in the audio column on your survey sheet. Make sure you upload this file when you publish your form. | ||||||||
83 | select_one list1 | select_media | You can also add media to choices. Choose your favorite bird. | Add the file name in the image column on your choices sheet. Make sure you upload this file when you publish your form. | |||||||||
84 | trigger | my_trigger | Acknowledge widget | Need to push button to proceed to next question in ODK. In enketo no user action is required, the message is simply displayed the same as a note. (type=trigger) | yes | ||||||||
85 | end_group |