# For select\_multiple options , how to fill in a value for each selected option?

**URL:** <https://forum.getodk.org/t/for-select-multiple-options-how-to-fill-in-a-value-for-each-selected-option/20341>\
**Category:** Support\
**Created:** [June 11, 2019, 10:13am UTC](https://forum.getodk.org/t/for-select-multiple-options-how-to-fill-in-a-value-for-each-selected-option/20341 "2019-06-11T10:13:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frances](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/frances/32/2680_2.png) [@Frances](https://forum.getodk.org/u/Frances)\
**Post date:** [June 11, 2019, 10:13am UTC](https://forum.getodk.org/t/for-select-multiple-options-how-to-fill-in-a-value-for-each-selected-option/20341/1 "2019-06-11T10:13:37Z")

</div>

Hi there everyone - I am designing a form and have a question which would require a selection of multiple options. 'select\_multiple'

I want the user to be able to fill in values for their selected options.

Example question:  
Choose the species of fish present and indicate approximate percentage for each

Example options to select:  
Fish 1  
Fish 2  
Fish 3  
Fish 4

Example answers:  
Fish 1: 10%  
Fish 2: 50%  
Fish 3: 20%  
Fish 4: 20%

Any idea how I do this?

I attach my form (which also needs testing!) [Smokingform1.xls (363 KB)](https://forum.getodk.org/uploads/short-url/fZVmwIoTtohHKf9yOpDaxCAlEwx.xls) Row 14 relates to this topic.

Thanks!

Fran

---

<div class="post-metadata">

**Author:** ![ARIF\_AZAD\_KHAN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/arif_azad_khan/32/2921_2.png) [@ARIF\_AZAD\_KHAN](https://forum.getodk.org/u/ARIF_AZAD_KHAN)\
**Post date:** [June 11, 2019, 11:00am UTC](https://forum.getodk.org/t/for-select-multiple-options-how-to-fill-in-a-value-for-each-selected-option/20341/2 "2019-06-11T11:00:00Z")

</div>

You can repeat selected item

> [@How to repeat questions based on select\_multiple](https://forum.getodk.org/t/how-to-repeat-questions-based-on-select-multiple/16405/3):
>
> Hi @Xiphware I would like to ask a question in the repeat group in reference to the answers of the select\_multiple. For example: select\_multiple merchants begin\_repeat // repeat\_count=count(count-selected($Q1)-if{$Q1='none',1,0}) decimal // unit price for ${merchants} end\_repeat I guess this is not working, didnt test it though. Have you any ideas? Thanks,

or can show selected item

> **[Form Logic](https://docs.getodk.org/form-logic/)**
>
> ODK Collect supports a wide range of dynamic form behavior. This document covers how to specify this behavior in your XLSForm definition. Form logic building blocks: Variables: Variables reference ...

---

<div class="post-metadata">

**Author:** ![Frances](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/frances/32/2680_2.png) [@Frances](https://forum.getodk.org/u/Frances)\
**Post date:** [June 11, 2019, 11:51am UTC](https://forum.getodk.org/t/for-select-multiple-options-how-to-fill-in-a-value-for-each-selected-option/20341/3 "2019-06-11T11:51:24Z")

</div>

Thank you so much. The example shown in the video to the website link for blood pressure readings is what I am looking for.

However, before this, how do I only show the options that have been selected?

Thanks!

---

<div class="post-metadata">

**Author:** ![ARIF\_AZAD\_KHAN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/arif_azad_khan/32/2921_2.png) [@ARIF\_AZAD\_KHAN](https://forum.getodk.org/u/ARIF_AZAD_KHAN)\
**Post date:** [June 11, 2019, 12:36pm UTC](https://forum.getodk.org/t/for-select-multiple-options-how-to-fill-in-a-value-for-each-selected-option/20341/4 "2019-06-11T12:36:56Z")

</div>

> [@Frances](#):
>
> However, before this, how do I only show the options that have been selected?

You can check this xls example  
[multiple\_select\_relevant.xlsx (16.2 KB)](https://forum.getodk.org/uploads/short-url/lGoZbYFugIYUHbji5KWpLIn7ehg.xlsx)

---

<div class="post-metadata">

**Author:** ![Frances](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/frances/32/2680_2.png) [@Frances](https://forum.getodk.org/u/Frances)\
**Post date:** [June 11, 2019, 2:05pm UTC](https://forum.getodk.org/t/for-select-multiple-options-how-to-fill-in-a-value-for-each-selected-option/20341/5 "2019-06-11T14:05:39Z")

</div>

Thank you so much - assuming I have to now add in all my species?
