# Select multiple with 'relevant' expression

**URL:** <https://forum.getodk.org/t/select-multiple-with-relevant-expression/28731>\
**Category:** Support\
**Created:** [July 30, 2020, 1:01pm UTC](https://forum.getodk.org/t/select-multiple-with-relevant-expression/28731 "2020-07-30T13:01:57Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [July 31, 2020, 11:18am UTC](https://forum.getodk.org/t/select-multiple-with-relevant-expression/28731/8 "2020-07-31T11:18:27Z")

</div>

So you need something completly else. After your `select_multiple` question you need to crate a `repeat_group` with [repeat\_count](https://xlsform.org/en/#fixed-repeat-counts) = [count-selected(${name\_of\_your\_first\_question})](https://docs.getodk.org/form-operators-functions/#count-selected)  
inside that group you can add the question you want to be repeated and it will be repeated accordingle to the number of selected items in question one.

You can find similar topic on the forum:

> [@Can I select 5 Choices, and then the repeat loop happens only for those 5](https://forum.getodk.org/t/can-i-select-5-choices-and-then-the-repeat-loop-happens-only-for-those-5/19960):
>
> Hello, New Question, Same form, is there a way that I can make a choice of say 3 out of 10 things, and then the nested repeat loop happens only for those 3 things. e.g. I have to collect information by team in different classrooms, some classrooms will have 3 teams, some will have 10 . Is there a way that before the repeat starts, the teacher chooses Teams (which are standard named as Team 1, Team 2 .....) and then the repeat function happens only for that chosen list ?

> [@How to repeat questions based on select\_multiple](https://forum.getodk.org/t/how-to-repeat-questions-based-on-select-multiple/16405):
>
> Hi, I am trying to design a survey where I have to a question where multiple options can be selected (out of 20 options) and the next three follow up questions has to be repeated the same number of times as the previous number of options which have been selected. Please help!

> [@Repeat with multiple selection](https://forum.getodk.org/t/repeat-with-multiple-selection/3102):
>
> Dear all, Can anyone send me an example (xls) with a repeat with multiple selection. I want to create a form with a list of multiple herbicides and do some repeating questions for each herbicide that is selected. There was some discussion topic on this, but I can't get this thing work in my excel. Most of the discussion there is on the Xform-level, for which I don't have enough experience... Would be good to have an example form... Many thanks in advance! Kind regards, Ed

---

_[View the full topic](https://forum.getodk.org/t/select-multiple-with-relevant-expression/28731)._
