# Conditional logic based on checkbox selections

**URL:** <https://community.gravityforms.com/t/conditional-logic-based-on-checkbox-selections/11342>\
**Category:** Get Help\
**Tags:** gravity-wiz, conditional-logic\
**Created:** [December 4, 2021, 10:23pm UTC](https://community.gravityforms.com/t/conditional-logic-based-on-checkbox-selections/11342 "2021-12-04T22:23:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![user61a0af948a7f5198](https://avatars.discourse-cdn.com/v4/letter/u/90db22/32.png) [@user61a0af948a7f5198](https://community.gravityforms.com/u/user61a0af948a7f5198)\
**Post date:** [December 4, 2021, 10:23pm UTC](https://community.gravityforms.com/t/conditional-logic-based-on-checkbox-selections/11342/1 "2021-12-04T22:23:41Z")

</div>

Hello,

Is there a way for fields to appear on the basis of a checkbox selection?

Say a user is moving house and we are a service that enables them to notify companies en-masse that they have changed their details

Is there a solution whereby they can select the name of a company next to a check box, and by selecting the name more fields appear so they can  
enter further details, specific to that company?

eg:  
Insurance Company 1  
Insurance Company 2  
Insurance Company 3

- User selects Insurance Company 3 and fields appear where they can enter their policy number etc.

The current method of conditional logic would mean I would have to create separate fields linked to each checkbox, and with 600+ companies, this could take  
a while. Is there a more efficient method?

Thanks

---

<div class="post-metadata">

**Author:** ![user5c0166073a6c48.6](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user5c0166073a6c48.6/32/17391_2.png) [@user5c0166073a6c48.6](https://community.gravityforms.com/u/user5c0166073a6c48.6)\
**Post date:** [December 5, 2021, 4:22am UTC](https://community.gravityforms.com/t/conditional-logic-based-on-checkbox-selections/11342/2 "2021-12-05T04:22:55Z")

</div>

Sounds like you need [how to create conditional choices](https://gravitywiz.com/how-to-create-conditional-choices-with-gravity-forms/)

Great article there and I believe this is the solution you’re a looking for.

---

<div class="post-metadata">

**Author:** ![user61a0af948a7f5198](https://avatars.discourse-cdn.com/v4/letter/u/90db22/32.png) [@user61a0af948a7f5198](https://community.gravityforms.com/u/user61a0af948a7f5198)\
**Post date:** [December 5, 2021, 6:40am UTC](https://community.gravityforms.com/t/conditional-logic-based-on-checkbox-selections/11342/3 "2021-12-05T06:40:53Z")

</div>

Thanks for your helpful reply. Alas, the plugin seems to change the choices available but not add text boxes. I would like a new text box to appear when a checkbox is selected, and two text boxes to appear if two checkboxes are selected etc

Is this possible?

---

<div class="post-metadata">

**Author:** ![user5c0166073a6c48.6](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user5c0166073a6c48.6/32/17391_2.png) [@user5c0166073a6c48.6](https://community.gravityforms.com/u/user5c0166073a6c48.6)\
**Post date:** [December 5, 2021, 3:17pm UTC](https://community.gravityforms.com/t/conditional-logic-based-on-checkbox-selections/11342/4 "2021-12-05T15:17:44Z")

</div>

I believe you can do that with the plugin I mentioned. In their tutorial you can see the text field appear based on the checkbox selected.

You can always reach out to their support for more in-depth configuration specific to your setup.

---

<div class="post-metadata">

**Author:** ![user61a0af948a7f5198](https://avatars.discourse-cdn.com/v4/letter/u/90db22/32.png) [@user61a0af948a7f5198](https://community.gravityforms.com/u/user61a0af948a7f5198)\
**Post date:** [December 5, 2021, 6:53pm UTC](https://community.gravityforms.com/t/conditional-logic-based-on-checkbox-selections/11342/5 "2021-12-05T18:53:30Z")

</div>

I’m grateful. Thank you so much. I will contact them.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [January 4, 2022, 6:54pm UTC](https://community.gravityforms.com/t/conditional-logic-based-on-checkbox-selections/11342/6 "2022-01-04T18:54:06Z")

</div>

Closed on January 4, 2022, 6:54pm UTC

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