# Hide components of a form according to the value of other components

**URL:** <https://community.glideapps.com/t/hide-components-of-a-form-according-to-the-value-of-other-components/27624>\
**Category:** Ask for Help\
**Created:** [June 4, 2021, 10:03am UTC](https://community.glideapps.com/t/hide-components-of-a-form-according-to-the-value-of-other-components/27624 "2021-06-04T10:03:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AurelienF](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/aurelienf/32/26357_2.png) [@AurelienF](https://community.glideapps.com/u/AurelienF)\
**Post date:** [June 4, 2021, 10:03am UTC](https://community.glideapps.com/t/hide-components-of-a-form-according-to-the-value-of-other-components/27624/1 "2021-06-04T10:03:48Z")

</div>

Hi,

I am using forms to allow my users to input data. I was wondering if in my forms I can use a switch or the value of a choice to show or hide components. For instance, my form is about registering to an event and users can choose from a choice component if they want to register with a partner for the event. If they choose “yes”, I would like to display a text component asking for their partner’s name. if they choose “no”, I would like to hide the text component asking for their partner’s name.

Best!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [June 4, 2021, 10:07am UTC](https://community.glideapps.com/t/hide-components-of-a-form-according-to-the-value-of-other-components/27624/2 "2021-06-04T10:07:37Z")

</div>

yes, you’ll want to use [Screen Values](https://docs.glideapps.com/all/reference/values/screen-values).

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:52pm UTC](https://community.glideapps.com/t/hide-components-of-a-form-according-to-the-value-of-other-components/27624/4 "2024-01-17T16:52:07Z")

</div>


