# Returning only selected values from a multiple\_choice question

**URL:** <https://forum.getodk.org/t/returning-only-selected-values-from-a-multiple-choice-question/38512>\
**Category:** Support\
**Tags:** form-design, odk-build, odk-xlsform\
**Created:** [August 1, 2022, 2:47pm UTC](https://forum.getodk.org/t/returning-only-selected-values-from-a-multiple-choice-question/38512 "2022-08-01T14:47:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [August 1, 2022, 7:34pm UTC](https://forum.getodk.org/t/returning-only-selected-values-from-a-multiple-choice-question/38512/2 "2022-08-01T19:34:04Z")

</div>

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

What about using the [`rank`](https://xlsform.org/en/#rank) widget?

Here is a working example: [rank\_selection.xlsx](https://forum.getodk.org/uploads/short-url/17sySNv5tZxfhGcXQzIsTK5daYq.xlsx) (10.0 KB)

 ![Screen Shot 2022-08-01 at 3.22.24 PM](https://getodk.b-cdn.net/uploads/default/original/3X/8/f/8f0ff6f6b8d530a198324226022cf6de61a7ef8c.png)

If you want to ask question(s) for each selection you can follow the example in this post:

> [@Repeat loop for multiple response not working perfectly](https://forum.getodk.org/t/repeat-loop-for-multiple-response-not-working-perfectly/32039/2):
>
> Welcome to the ODK forum, @nomwebu ! We're glad you're here. When you get a chance, please [introduce yourself on this forum thread](https://forum.getodk.org/t/-/6671). I'd also encourage you to add a real picture as your avatar because it helps build community! It is possible to ask a repeat group of questions for each selected answer from a select\_multiple question. And you can reference each answer inside the matching repeat to guide the respondent. You need to use the current repeat position to identify which answer you want t…

---

_[View the full topic](https://forum.getodk.org/t/returning-only-selected-values-from-a-multiple-choice-question/38512)._
