# Conditional fields in same form

**URL:** <https://forum.adalo.com/t/conditional-fields-in-same-form/3469>\
**Category:** Get Help\
**Created:** [August 22, 2020, 1:07pm UTC](https://forum.adalo.com/t/conditional-fields-in-same-form/3469 "2020-08-22T13:07:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bontragertodd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bontragertodd/32/2264_2.png) [@bontragertodd](https://forum.adalo.com/u/bontragertodd)\
**Post date:** [August 22, 2020, 1:07pm UTC](https://forum.adalo.com/t/conditional-fields-in-same-form/3469/1 "2020-08-22T13:07:48Z")

</div>

I would like to show and hide fields in the same form based on the input of a previous field.  
For example, a dropdown with two options is the first input on the field. Based on the user’s selection, I want to show one group of fields for one option and another group of fields for the other option.

Is this possible? If so, how?

---

<div class="post-metadata">

**Author:** ![ppvaldes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ppvaldes/32/2268_2.png) [@ppvaldes](https://forum.adalo.com/u/ppvaldes)\
**Post date:** [August 22, 2020, 4:17pm UTC](https://forum.adalo.com/t/conditional-fields-in-same-form/3469/2 "2020-08-22T16:17:48Z")

</div>

I don’t think this is possible with a form component. However you can add separate input/fields with different visibility options based on other fields. At the end you put the Create or Update button with the info gathered from the fields. You you can put the first dropdown field component, with the first two options. The second dropdown you change visibility if option one is A for example. And so on. At the end you add a button that Updates or Creates your data with the correct info. You can even have that action be conditioned. Hope this helps.

---

<div class="post-metadata">

**Author:** ![bontragertodd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bontragertodd/32/2264_2.png) [@bontragertodd](https://forum.adalo.com/u/bontragertodd)\
**Post date:** [August 23, 2020, 6:53pm UTC](https://forum.adalo.com/t/conditional-fields-in-same-form/3469/3 "2020-08-23T18:53:35Z")

</div>

Thank you @ppvaldes for the response. The issue I’m hitting now is how to make these fields required?

---

<div class="post-metadata">

**Author:** ![anon78309838](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon78309838](https://forum.adalo.com/u/anon78309838)\
**Post date:** [August 24, 2020, 9:06am UTC](https://forum.adalo.com/t/conditional-fields-in-same-form/3469/4 "2020-08-24T09:06:08Z")

</div>

Currently not possible but there is a feature request here for that: [Required Fields in a Custom Forms | Voters | Adalo](https://ideas.adalo.com/feature-requests/p/required-fields-in-a-custom-forms)

---

<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:** [September 3, 2020, 9:06am UTC](https://forum.adalo.com/t/conditional-fields-in-same-form/3469/5 "2020-09-03T09:06:19Z")

</div>

Closed on September 3, 2020, 9:06am UTC

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