# Fields based on dropdown value

**URL:** <https://forum.adalo.com/t/fields-based-on-dropdown-value/27848>\
**Category:** Get Help\
**Created:** [June 1, 2022, 2:11pm UTC](https://forum.adalo.com/t/fields-based-on-dropdown-value/27848 "2022-06-01T14:11:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nitish](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitish](https://forum.adalo.com/u/Nitish)\
**Post date:** [June 1, 2022, 2:11pm UTC](https://forum.adalo.com/t/fields-based-on-dropdown-value/27848/1 "2022-06-01T14:11:46Z")

</div>

I am creating an app wherein I have a dropdown and a text field. Both of these is used to make an entry into the database. What I want is, depending on the dropdown value, text field should be made visible or invisible.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/b/f/bf92f7c3d2cbd68cb7cabf48a9c6fbdc55f53444.png)

I tried adding a condition like this - if dropdown is equal to “some value”, then make the text field visible. However the problem with this is, initially when the dropdown is blank this text field is visible. What can I do to solve this ? Is there a way to add multiple conditions to visibility field ?

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [June 1, 2022, 2:28pm UTC](https://forum.adalo.com/t/fields-based-on-dropdown-value/27848/2 "2022-06-01T14:28:06Z")

</div>

Hi @Nitish ,

> [@Nitish](#):
>
> initially when the dropdown is blank this text field is visible. What can I do to solve this ?

You can make the input as a group by clicking the three dots and click make a group and add a visibility condition to the group that visible if Other components \> drop-down name \> name ( property ) \> is not equal to \> empty!

Thank you

---

<div class="post-metadata">

**Author:** ![Nitish](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitish](https://forum.adalo.com/u/Nitish)\
**Post date:** [June 2, 2022, 2:47pm UTC](https://forum.adalo.com/t/fields-based-on-dropdown-value/27848/3 "2022-06-02T14:47:40Z")

</div>

Hey @Dilon I had tried this. The problem with this is this only considers an empty value. What if I want to make it visible if dropdown value is equal to "A " or “B” ?

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [June 2, 2022, 3:23pm UTC](https://forum.adalo.com/t/fields-based-on-dropdown-value/27848/4 "2022-06-02T15:23:31Z")

</div>

Hey there @Nitish

That’s exactly how to do it, how @Dilon described.

You have the visibility setting on your input component where selected membership type \> name is equal to Only Gym Membership. This is correct.

Next steps:  
With ONLY the text input component selected, click the menu on the top and select “Make a group”. This group will only contain your text input component. Set the visibility settings on the group to sometimes visible if selected membership type \> name is not equal to empty.

This creates somewhat of an “AND” type of function.

If membership name is NOT empty (group) AND  
If membership name is exactly "Only Gym Membership (input)

---

<div class="post-metadata">

**Author:** ![Nitish](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitish](https://forum.adalo.com/u/Nitish)\
**Post date:** [June 2, 2022, 3:28pm UTC](https://forum.adalo.com/t/fields-based-on-dropdown-value/27848/6 "2022-06-02T15:28:13Z")

</div>

Got it @Flawless @Dilon. Thanks !

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [June 12, 2022, 3:28pm UTC](https://forum.adalo.com/t/fields-based-on-dropdown-value/27848/7 "2022-06-12T15:28:35Z")

</div>

Closed on June 12, 2022, 3:28pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
