# subgroups with multiple choice answers.

**URL:** <https://forum.getodk.org/t/subgroups-with-multiple-choice-answers/42252>\
**Category:** Support\
**Created:** [July 13, 2023, 5:38pm UTC](https://forum.getodk.org/t/subgroups-with-multiple-choice-answers/42252 "2023-07-13T17:38:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ferdinand](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ferdinand/32/22045_2.png) [@Ferdinand](https://forum.getodk.org/u/Ferdinand)\
**Post date:** [July 13, 2023, 5:38pm UTC](https://forum.getodk.org/t/subgroups-with-multiple-choice-answers/42252/1 "2023-07-13T17:38:46Z")

</div>

Hello everyone. I'm new to using odk and I want to make subgroups with multiple choice answers. For example :  
1-Lack of information  
1-1 ignore  
1-2 forgotten  
2-Lack of motivation  
2-1 to postpone  
2-2 don't trust  
I'm crashing and I would like some help please

---

<div class="post-metadata">

**Author:** ![danbjoseph](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/danbjoseph/32/21901_2.png) [@danbjoseph](https://forum.getodk.org/u/danbjoseph)\
**Post date:** [July 14, 2023, 1:22am UTC](https://forum.getodk.org/t/subgroups-with-multiple-choice-answers/42252/2 "2023-07-14T01:22:45Z")

</div>

Welcome to the forum @Ferdinand and thanks for adding your profile picture. It helps build community! When you get a chance, please [introduce yourself on this forum thread](https://forum.getodk.org/t/-/6671).

If the first question is a select\_one then you can use a choice filter on the second question.  
You could also create a question for each set of sub answers and then use the `relevant` to show or hide as needed. You can see examples of both in [filter\_options.xlsx](https://forum.getodk.org/uploads/short-url/ox5gV06T6a4wmHTt0PeFVxnE5DG.xlsx) (10.2 KB) and you can use [https://getodk.org/xlsform/](https://getodk.org/xlsform/) to test it. There's more information about XLSForm at [https://xlsform.org/en/](https://xlsform.org/en/) and [https://docs.getodk.org/xlsform/](https://docs.getodk.org/xlsform/).

---

<div class="post-metadata">

**Author:** ![Ferdinand](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ferdinand/32/22045_2.png) [@Ferdinand](https://forum.getodk.org/u/Ferdinand)\
**Post date:** [July 14, 2023, 3:52pm UTC](https://forum.getodk.org/t/subgroups-with-multiple-choice-answers/42252/3 "2023-07-14T15:52:12Z")

</div>

Thank you @danbjoseph,  
for reacting so quickly to my post. I appreciate the solution but I would like the main reason and the subreasons to appear together so that he can make his choice

---

<div class="post-metadata">

**Author:** ![danbjoseph](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/danbjoseph/32/21901_2.png) [@danbjoseph](https://forum.getodk.org/u/danbjoseph)\
**Post date:** [July 16, 2023, 3:25pm UTC](https://forum.getodk.org/t/subgroups-with-multiple-choice-answers/42252/4 "2023-07-16T15:25:26Z")

</div>

What survey logic do you want included?  
That is - is it just a list of options... or do you want to show/hide or otherwise restrict how the user can select answers?

---

<div class="post-metadata">

**Author:** ![Ferdinand](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ferdinand/32/22045_2.png) [@Ferdinand](https://forum.getodk.org/u/Ferdinand)\
**Post date:** [July 17, 2023, 7:33am UTC](https://forum.getodk.org/t/subgroups-with-multiple-choice-answers/42252/5 "2023-07-17T07:33:01Z")

</div>

thanks, I want to display all answer options on the same page with this layout:  
1-Lack of information  
- ignore  
- forgotten  
2-Lack of motivation

- to postpone
- don't trust

---

<div class="post-metadata">

**Author:** ![ahblake](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ahblake/32/22392_2.png) [@ahblake](https://forum.getodk.org/u/ahblake)\
**Post date:** [July 17, 2023, 8:36am UTC](https://forum.getodk.org/t/subgroups-with-multiple-choice-answers/42252/6 "2023-07-17T08:36:42Z")

</div>

> [@Ferdinand](#):
>
> display all answer options on the same page

Can you put the two questions in a [group](https://docs.getodk.org/form-logic/#groups), and then use the group appearance `field-list` to have them display on the same screen?

> **[Question Types](https://docs.getodk.org/form-question-types/#grouping-multiple-widgets-on-the-same-screen)**
>
> ODK Collect supports forms with a wide variety of question types. The exact functionality and display style of each question are specified in your XLSForm definition using the type and appearance c...
