# Conditional option list

**URL:** <https://forum.getodk.org/t/conditional-option-list/28122>\
**Category:** Support\
**Tags:** odk-xforms, odk-xlsform\
**Created:** [July 9, 2020, 6:10am UTC](https://forum.getodk.org/t/conditional-option-list/28122 "2020-07-09T06:10:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![A.N.M\_AL-IMRAN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/a.n.m_al-imran/32/1610_2.png) [@A.N.M\_AL-IMRAN](https://forum.getodk.org/u/A.N.M_AL-IMRAN)\
**Post date:** [July 9, 2020, 6:10am UTC](https://forum.getodk.org/t/conditional-option-list/28122/1 "2020-07-09T06:10:56Z")

</div>

Hello All,

I am trying to apply conditional option list on one of my forms. For example if I have options a, b, c and d on question 1 and if I select options a and c, the next question should provide options a and c to select from.

Support will be appreciated,  
Imran

---

<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 9, 2020, 8:13am UTC](https://forum.getodk.org/t/conditional-option-list/28122/2 "2020-07-09T08:13:12Z")

</div>

Hi @A.N.M_AL-IMRAN

I think you need to use the same set of items in both questions but the second question should use choice\_filter `selected(${question_1},name)`  
Please check out this form:  
[testForm.xlsx](https://forum.getodk.org/uploads/short-url/fvsImuGKBBnOD219SkCXi68GTqO.xlsx) (7.2 KB)

---

<div class="post-metadata">

**Author:** ![A.N.M\_AL-IMRAN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/a.n.m_al-imran/32/1610_2.png) [@A.N.M\_AL-IMRAN](https://forum.getodk.org/u/A.N.M_AL-IMRAN)\
**Post date:** [July 9, 2020, 2:00pm UTC](https://forum.getodk.org/t/conditional-option-list/28122/3 "2020-07-09T14:00:23Z")

</div>

Dear @Grzesiek2010,

This is brilliant! Thank you so much!

Imran
