<p>There's nothing native, but this is the <a href="http://feedback.buildwithcraft.com/forums/285221-feature-requests/suggestions/7185745-conditionals-in-field-layouts" rel="nofollow">highest requested feature</a> on the feedback site!</p>

<p>And there is also <a href="https://straightupcraft.com/craft-plugins/reasons" rel="nofollow">this plugin</a>, which might do what you're looking for.</p>

CC BY-SA 3.0
2015-06-24T00:10:39.653Z
2015-06-24T00:10:39.653Z
Brad Bell
<p>Check out the <strong>Reasons</strong> plugin... sounds like exactly what you need:</p>

<blockquote>
  <p><a href="https://github.com/mmikkel/Reasons-Craft/">https://github.com/mmikkel/Reasons-Craft/</a></p>
</blockquote>

CC BY-SA 3.0
2015-06-24T00:10:57.293Z
I'm too slow!!!
Brad Bell
CC BY-SA 3.0
2015-06-24T00:11:22.520Z
Beat you by 14 seconds :)
Lindsey D
CC BY-SA 3.0
2015-06-24T00:21:04.287Z
Perfect! Looks like exactly what I need. Winner gets the checkmark!
idahotallpaul
CC BY-SA 3.0
2015-06-24T00:10:26.867Z
2015-06-24T00:10:26.867Z
Lindsey D
<p>I'm looking for a way to show or hide fields when editing an entry based on items selected. </p>

<p>I need to manage a list of businesses and my plan is to have a channel to hold them all. But based on the type of business, there are different pieces of information I need to collect.</p>

<ul>
<li>They all have common attributes (Name, Description, Location, Phone, etc.)</li>
<li>There are many types (Restaurant, Recreation, Venue, etc.)

<ul>
<li>Many types have subtypes, but not all (Restaurant: American, Chinese, Casual)</li>
<li>Some have additional Info based on their type (Venu includes a list of meeting rooms with Names, Dimensions, Amenities, etc.)</li>
<li>Businesses can have more than one type (Restaurant, Venu)</li>
</ul></li>
</ul>

<p>What I'd like to do is be able to show different sets of inputs based on what categories are selected. </p>

<ul>
<li>Check Restaurant 

<ul>
<li>Reveal a list of Restaurant types, because that is relevant only to restaurants. </li>
</ul></li>
<li>Check Venue

<ul>
<li>Reveal a table field type so you can enter a list of room names with corresponding features and amenities. </li>
</ul></li>
</ul>

<p>Is there a way in Craft, or is there a plugin that lets you run logic based on inputs to show or hide other inputs?</p>

<entries><categories><conditional><logic>
Conditional Logic to show or hide fields in the admin?
# Conditional Logic to show or hide fields in the admin?

(Asked by: username_0 on 2015-06-24)

I'm looking for a way to show or hide fields when editing an entry based on items selected.

I need to manage a list of businesses and my plan is to have a channel to hold them all. But based on the type of business, there are different pieces of information I need to collect.

* They all have common attributes (Name, Description, Location, Phone, etc.)
* There are many types (Restaurant, Recreation, Venue, etc.)
  + Many types have subtypes, but not all (Restaurant: American, Chinese, Casual)
  + Some have additional Info based on their type (Venu includes a list of meeting rooms with Names, Dimensions, Amenities, etc.)
  + Businesses can have more than one type (Restaurant, Venu)

What I'd like to do is be able to show different sets of inputs based on what categories are selected.

* Check Restaurant
  + Reveal a list of Restaurant types, because that is relevant only to restaurants.
* Check Venue
  + Reveal a table field type so you can enter a list of room names with corresponding features and amenities.

Is there a way in Craft, or is there a plugin that lets you run logic based on inputs to show or hide other inputs?

**Tags:** entries, categories, conditional, logic


---

## 2 answers

### Answer by username_2 on 2015-06-24. Score: 5 | Accepted answer

Check out the **Reasons** plugin... sounds like exactly what you need:

> <https://github.com/mmikkel/Reasons-Craft/>

> **Comments:**
> **username_1**: I'm too slow!!!  
> **username_2**: Beat you by 14 seconds :)  
> **username_0**: Perfect! Looks like exactly what I need. Winner gets the checkmark!  

---

### Answer by username_1 on 2015-06-24. Score: 2

There's nothing native, but this is the [highest requested feature](http://feedback.buildwithcraft.com/forums/285221-feature-requests/suggestions/7185745-conditionals-in-field-layouts) on the feedback site!

And there is also [this plugin](https://straightupcraft.com/craft-plugins/reasons), which might do what you're looking for.


---

