Skip to content

Commit a75dba5

Browse files
authored
Merge pull request #421 from kobotoolbox/nice-tables2
Update articles with nice XLSForm tables v2
2 parents cbc935c + 1f742bc commit a75dba5

17 files changed

+42
-0
lines changed

source/acknowledge.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Below is the equivalent form logic in XLSForm syntax:
5252
| text | name | What is your name? | |
5353
| integer | age | How old are you? | |
5454
| end_group | | | |
55+
| survey |
5556

5657
<p class="note">
5758
You can download the example XLSForm

source/add_logo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ To begin:
2020
| type | name | label | media::image |
2121
| :--- | :--- | :---- | :----------- |
2222
| note | logo | | logo.jpg |
23+
| survey|
2324

2425
3. When you're done editing the form, upload the XLSForm to either a new or
2526
existing project.

source/alternative_enketo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ by defining the theme under the `style` column in the `settings` sheet:
3535
| form_title | style |
3636
| :---------- | :---- |
3737
| Themed form | pages |
38+
| settings |
3839

3940
## Available styles in XLSForm:
4041

source/audit_logging.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ please follow the steps below:
2626
| end | end | |
2727
| audit | audit | |
2828
| text | Q1 | Q1. What is your name? |
29+
| survey |
2930

3031
2. Collect data using the [Collect Android app](kobocollect-android.md) and send
3132
the finalized forms back to the server. Collect saves the audit logs for each

source/cascading_select.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ in Excel or another spreadsheet program).
5252
| select_one states | Q1 | Which state? | |
5353
| select_one counties | Q2 | Which county? | state=${Q1} |
5454
| select_one cities | Q3 | Which city? | state=${Q1} and county=${Q2} |
55+
| survey |
5556

5657
2. In the same survey sheet, add a column called `choice_filter` and add the
5758
XLSForm reference to each of the parent items.
@@ -78,6 +79,7 @@ in Excel or another spreadsheet program).
7879
| cities | redmond | Redmond | washington | king |
7980
| cities | tacoma | Tacoma | washington | pierce |
8081
| cities | puyallup | Puyallup | washington | pierce |
82+
| choices |
8183

8284
4. Note that for each of the child elements you need to add a column to specify
8385
its parent. For example, King and Pierce counties are in Washington state, so
@@ -99,6 +101,7 @@ responses from a previous question. For this one could do the following:
99101
| :-------------------- | :--- | :------------------------------------------------------------------------------- | :-------------------- |
100102
| select_multiple brand | Q1 | Q1. Which brand comes to mind comes to mind when you think about life insurance? | |
101103
| select_multiple brand | Q2 | Q2. Which branch would you choose for your future life insurance purchase? | selected(${Q1}, name) |
104+
| survey |
102105

103106
**choices**
104107

@@ -114,6 +117,7 @@ responses from a previous question. For this one could do the following:
114117
| brand | 8 | Tata AIA Life |
115118
| brand | 9 | ICICI Prudential |
116119
| brand | 10 | PNB Met Life |
120+
| choices |
117121

118122
Preview the data collecting form in Enketo:
119123

source/collect_gps.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ question to your form. There are three types of GPS questions: **Point**,
2828
| geopoint | point | Record your current location | This question collects a single GPS coordinate that denotes a single point |
2929
| geotrace | line | Record a line | This question collects two coordinates to form a line |
3030
| geoshape | area | Record an area | This question collects GPS coordinates that mark out a closed loop/area in any shape |
31+
| survey |
3132

3233
## Collecting Data Using the GPS Questions
3334

source/collecting_signatures.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ question.
3232
| :---- | :--- | :--------------- | :--------- | :------------------------------- |
3333
| image | draw | Draw widget | draw | Image type with draw appearance |
3434
| image | sign | Signature widget | signature | Image type with signature widget |
35+
| survey |
3536

3637
[Follow this link](https://enke.to/draw) to test the difference between the draw
3738
and signature widgets.

source/external_file.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ more information.
2828
| text | name | What is your name? |
2929
| select_one sex | sex | What is your sex? |
3030
| select_one_from_file fruits.csv | fruits | What is your favourite fruit? |
31+
| survey |
3132

3233
**choices**
3334

3435
| list_name | name | label |
3536
| :-------- | :--- | :----- |
3637
| sex | 1 | Male |
3738
| sex | 2 | Female |
39+
| choices |
3840

3941
<p class="note">The <code>fruits.csv</code> is the file name containing the choices for the question "What is your favorite fruit?".</p>
4042

source/group_repeat.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,15 @@ same screen through XLSForm (if you are comfortable with XLSForm) using the
117117
| select_one Sex | Sex | Sex | |
118118
| text | Hobby | Hobby | |
119119
| end_group | | | |
120+
| survey |
120121

121122
**choices**
122123

123124
| list_name | name | label |
124125
| :-------- | :--- | :----- |
125126
| Sex | 1 | Male |
126127
| Sex | 2 | Female |
128+
| survey |
127129

128130
## Ungrouping a set of questions
129131

@@ -169,6 +171,7 @@ Alternatively, you could also do this in XLSForm:
169171
| select_one Sex | Sex | Sex | |
170172
| text | Hobby | Hobby | |
171173
| end_group | | | |
174+
| survey |
172175

173176
**choices**
174177

@@ -178,6 +181,7 @@ Alternatively, you could also do this in XLSForm:
178181
| Q1 | 2 | No |
179182
| Sex | 1 | Male |
180183
| Sex | 2 | Female |
184+
| choices |
181185

182186
## Creating a roster (repeating group of questions)
183187

@@ -213,13 +217,15 @@ survey in XLSForm as the formbuilder does not currently support this feature.
213217
| select_one Sex | Sex | Sex | |
214218
| text | Hobby | Hobby | |
215219
| end_repeat | | | |
220+
| survey |
216221

217222
**choices**
218223

219224
| list_name | name | label |
220225
| :-------- | :--- | :----- |
221226
| Sex | 1 | Male |
222227
| Sex | 2 | Female |
228+
| choices |
223229

224230
<p class="note">Instead of having an indefinite number of repeat group iterations, this method will control the number of iterations based on the value in the <code>repeat_count</code> column.</p>
225231

@@ -249,6 +255,7 @@ recorded in a roster (previously) to link with other repeating group questions
249255
| calculate | name_individual | | indexed-repeat(${Name}, ${DC}, position(..)) | |
250256
| select_one edu_level | edu_level | What is ${name_individual}'s level of education | | |
251257
| end_repeat | | | | |
258+
| survey |
252259

253260
**choices**
254261

@@ -259,6 +266,7 @@ recorded in a roster (previously) to link with other repeating group questions
259266
| edu_level | 1 | Primary |
260267
| edu_level | 2 | Secondary |
261268
| edu_level | 3 | Higher Secondary & Above |
269+
| choices |
262270

263271
Screen seen while [collecting data in Enketo](data_through_webforms.md):
264272

@@ -294,13 +302,15 @@ Alternatively, you could also do this in XLSForm:
294302
| text | Hobbies | Hobbies of ${name_individual} | | |
295303
| end_repeat | | | | |
296304
| end_repeat | | | | |
305+
| survey |
297306

298307
**choices**
299308

300309
| list_name | name | label |
301310
| :-------- | :--- | :----- |
302311
| Sex | 1 | Male |
303312
| Sex | 2 | Female |
313+
| choices |
304314

305315
Screen seen while collecting data in Enketo:
306316

source/hxl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ each column.
5353
| select_one sector | cluster | Cluster | #sector |
5454
| integer | affected | Number of people affected | #affected |
5555
| integer | reached | Number of people reached to date | #reached |
56+
| survey |

0 commit comments

Comments
 (0)