# Not selected with select\_multiple

**URL:** <https://forum.odk-x.org/t/not-selected-with-select-multiple/2048>\
**Category:** Support\
**Created:** [November 4, 2022, 1:19pm UTC](https://forum.odk-x.org/t/not-selected-with-select-multiple/2048 "2022-11-04T13:19:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mandy\_Sin](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/mandy_sin/32/1016_2.png) [@Mandy\_Sin](https://forum.odk-x.org/u/Mandy_Sin)\
**Post date:** [November 4, 2022, 1:19pm UTC](https://forum.odk-x.org/t/not-selected-with-select-multiple/2048/1 "2022-11-04T13:19:52Z")

</div>

I have a select multiple field and I want to restrict selection of an option when any of the other options are selected. I tried using not selected like this not(selected(data(‘q1’), ‘A’)) but it did not work. Does ‘not selected’ work with select\_multiple? What mistake am I making if it does? And if not, how can I restrict selection without the use of any js function? Thanks.

---

<div class="post-metadata">

**Author:** ![Mandy\_Sin](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/mandy_sin/32/1016_2.png) [@Mandy\_Sin](https://forum.odk-x.org/u/Mandy_Sin)\
**Post date:** [November 4, 2022, 2:30pm UTC](https://forum.odk-x.org/t/not-selected-with-select-multiple/2048/2 "2022-11-04T14:30:22Z")

</div>

Ok, so it worked but not sure why it did with this change. All I did was use a numeric value as select\_multiple choices. So, my not selected code became something like this:  
not(selected(data(‘q1’), ‘1’))

---

<div class="post-metadata">

**Author:** ![elmps2018](https://odkx.b-cdn.net/user_avatar/forum.odk-x.org/elmps2018/32/105_2.png) [@elmps2018](https://forum.odk-x.org/u/elmps2018)\
**Post date:** [November 4, 2022, 2:50pm UTC](https://forum.odk-x.org/t/not-selected-with-select-multiple/2048/3 "2022-11-04T14:50:19Z")

</div>

Not sure why this fixed it, but glad it did!
