Skip to content

Commit

Permalink
Merge pull request #329 from kobotoolbox/kobo-matrix
Browse files Browse the repository at this point in the history
Update kobo matrix formatting
  • Loading branch information
joshuaberetta authored Mar 15, 2023
2 parents 7a50cde + 8c37651 commit c3c85e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
32 changes: 15 additions & 17 deletions source/matrix_response.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Question Matrix Response Type

**Last updated:**
<a href="https://github.com/kobotoolbox/docs/blob/c2e8c882fdd831549c2f7f4474a9d522bafc181b/source/matrix_response.md" class="reference">2
Dec 2021</a>
**Last updated:** <a href="https://github.com/kobotoolbox/docs/blob/e7f863dd178949ac432672c795b603f34ec16550/source/matrix_response.md" class="reference">15 Mar 2023</a>

The Question Matrix response type allows users to create a group of questions
that display in a matrix format, whereby each cell within the matrix represents
Expand Down Expand Up @@ -46,12 +43,12 @@ the instructions as outlined in the images below:

**survey**

| type | name | label | required | kobo--matrix_list |
| :--------------- | :--- | :----------------------------------- | :------- | :---------------- |
| begin_kobomatrix | M1 | Items | | assets |
| select_one yn | Q1 | Q1. Which assets do you have at home | TRUE | |
| integer | Q2 | Q2. Number of assets | TRUE | |
| end_kobomatrix | | | | |
| type | name | label | required | `kobo--matrix_list` |
| :--------------- | :--- | :----------------------------------- | :------- | :---------------- |
| begin_kobomatrix | M1 | Items | | assets |
| select_one yn | Q1 | Q1. Which assets do you have at home | TRUE | |
| integer | Q2 | Q2. Number of assets | TRUE | |
| end_kobomatrix | | | | |

**choices**

Expand All @@ -69,7 +66,8 @@ the instructions as outlined in the images below:
| :--------------------------- |
| theme-grid no-text-transform |

<p class="note">This method uses <code>begin_kobomatrix</code>, <code>end_kobomatrix</code> and <code>kobo—matrix_list</code>.</p>
<p class="note">This method uses <code>begin_kobomatrix</code>,
<code>end_kobomatrix</code> and <code>kobo--matrix_list</code>.</p>

Following the steps above, you should see the question matrix shown in the
screenshot below (In [Enketo](data_through_webforms.md) only):
Expand All @@ -81,9 +79,9 @@ matrix as follows:

**survey**

| type | name | label | required | kobo--matrix_list | relevant | constraint |
| :--------------- | :--- | :----------------------------------- | :------- | :---------------- | :------------ | :--------- |
| begin_kobomatrix | M1 | Items | | assets | | |
| select_one yn | Q1 | Q1. Which assets do you have at home | TRUE | | | |
| integer | Q2 | Q2. Number of assets | TRUE | | ${Q1} = 'yes' | . > 2 |
| end_kobomatrix | | | | | | |
| type | name | label | required | `kobo--matrix_list` | relevant | constraint |
| :--------------- | :--- | :----------------------------------- | :------- | :---------------- | :------------ | :--------- |
| begin_kobomatrix | M1 | Items | | assets | | |
| select_one yn | Q1 | Q1. Which assets do you have at home | TRUE | | | |
| integer | Q2 | Q2. Number of assets | TRUE | | ${Q1} = 'yes' | . > 2 |
| end_kobomatrix | | | | | | |
2 changes: 1 addition & 1 deletion source/recently_updated.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Recently updated Support Articles

<!--This page is auto generated using the `scripts/last-updated.py` script, do not update manually-->
1. [Question Matrix Response Type](matrix_response.md) (15 Mar 2023)
1. [Restricting Text Responses With Regular Expressions](restrict_responses.md) (9 Mar 2023)
1. [KoboToolbox data security measures: Keeping your data safe](is_my_data_safe.md) (7 Mar 2023)
1. [Using the Question Options](question_options.md) (7 Mar 2023)
Expand All @@ -10,4 +11,3 @@
1. [Exporting and Downloading Your Data](export_download.md) (22 Sep 2022)
1. [Form Settings and Metadata](form_meta.md) (25 Aug 2022)
1. [Sharing Your Project and Managing Permissions](managing_permissions.md) (25 Aug 2022)
1. [Connecting KoboToolbox to Microsoft Excel](pulling_data_into_excelquery.md) (23 Aug 2022)

0 comments on commit c3c85e2

Please sign in to comment.