# \[ODK Community\] How to check if something is selected inside multiple select

**URL:** <https://forum.getodk.org/t/odk-community-how-to-check-if-something-is-selected-inside-multiple-select/1822>\
**Category:** Support\
**Created:** [December 6, 2012, 2:30pm UTC](https://forum.getodk.org/t/odk-community-how-to-check-if-something-is-selected-inside-multiple-select/1822 "2012-12-06T14:30:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nik\_Go](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/n/50afbb/32.png) [@Nik\_Go](https://forum.getodk.org/u/Nik_Go)\
**Post date:** [December 6, 2012, 2:30pm UTC](https://forum.getodk.org/t/odk-community-how-to-check-if-something-is-selected-inside-multiple-select/1822/1 "2012-12-06T14:30:32Z")

</div>

In the relevant column for "actions", you can either try testing for  
individual values

not(

selected(${symptoms}, 'a') or selected(${symptoms}, 'b')  
or selected(${symptoms}, 'c') or selected(${symptoms}, 'd')  
or selected(${symptoms}, 'e') or selected(${symptoms}, 'f')

)

or, you could test for string length (no answer = zero length variable)

string-length(${symptoms}) = 0

/r  
Nik

> **···**
>
> On Thursday, December 6, 2012, wrote:
> 
> > Hello Everyone
> > 
> > I am trying to create a form using Excel for ODK. I am facing a problem  
> > where I have to show a question only if there is nothing selected in  
> > another multiple select that contains some values. I am very new to ODK and  
> > have no idea what I need to do. Can anyone please tell me what condition I  
> > apply in relevant column. See the attached excel file, in it I have to show  
> > the last question(highlighted green) only if the conditions are met. One of  
> > these conditions is that if nothing is selected inside a multiple select  
> > called symptoms. Please help me out. I will be very thankful.
> > 
> > --  
> > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com) \<javascript:;\>  
> > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com) \<javascript:;\>  
> > Options: [http://groups.google.com/group/opendatakit?hl=en](http://groups.google.com/group/opendatakit?hl=en)
