# Conditional choice button not working as expected

**URL:** <https://community.glideapps.com/t/conditional-choice-button-not-working-as-expected/9583>\
**Category:** Report a Bug\
**Created:** [May 22, 2020, 5:59am UTC](https://community.glideapps.com/t/conditional-choice-button-not-working-as-expected/9583 "2020-05-22T05:59:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Fefferman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_fefferman/32/7594_2.png) [@David\_Fefferman](https://community.glideapps.com/u/David_Fefferman)\
**Post date:** [May 22, 2020, 5:59am UTC](https://community.glideapps.com/t/conditional-choice-button-not-working-as-expected/9583/1 "2020-05-22T05:59:37Z")

</div>

How to recreate:  
• I have a 2 choice buttons and neither are set to “required.”  
• The 2nd button being visible is conditional on the first one having an input, i.e. “choice 1 is not empty”  
• Result: the 2nd choice is visible even when the 1st choice has nothing entered.

In the attached screenshot, “Plant Type 2” should be hidden until there is a manual entry into “Plant Type 1,” but it’s permanently visible.

[Screen Shot 2020-05-21 at 10.52.12 PM|465x500](https://community.glideapps.com/uploads/short-url/A5xSaSSTGccecGzZxEbmW0wjEFY.jpeg)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 22, 2020, 11:39am UTC](https://community.glideapps.com/t/conditional-choice-button-not-working-as-expected/9583/2 "2020-05-22T11:39:24Z")

</div>

That’s because you set a filter when you should be setting visibility. Filter is to filter the list of choices, not the component.

---

<div class="post-metadata">

**Author:** ![David\_Fefferman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_fefferman/32/7594_2.png) [@David\_Fefferman](https://community.glideapps.com/u/David_Fefferman)\
**Post date:** [May 22, 2020, 4:11pm UTC](https://community.glideapps.com/t/conditional-choice-button-not-working-as-expected/9583/3 "2020-05-22T16:11:43Z")

</div>

Hurp derp, that’s what happens when you work too late into the night! Thanks for catching that!
