<p>Could you use the entry types to achieve the same thing?
<a href="https://buildwithcraft.com/features/entry-types" rel="nofollow">https://buildwithcraft.com/features/entry-types</a></p>

CC BY-SA 3.0
2015-07-27T20:27:43.800Z
Yes, but why are Categories for then?
Samuel E.
CC BY-SA 3.0
2015-07-28T10:33:24.833Z
Categories would be used to simply classify your content within the system.  Unfortunately I don't know a way of having conditional logic in the CMS where you choose one value to display an appropriate field.
Andy Lake
CC BY-SA 3.0
2015-07-27T16:10:10.157Z
2015-07-27T16:10:10.157Z
Andy Lake
<p>I want to show some fields depending in the category selected for the entry but within the editing stage. is it possible?</p>

<p>If not, then how can i check if the entry is in a category in the template and output a field group.</p>

<p>thanks ahead!</p>

<categories><field>
Is it possible to assign fields to entries by category?
# Is it possible to assign fields to entries by category?

(Asked by: username_0 on 2015-07-25)

I want to show some fields depending in the category selected for the entry but within the editing stage. is it possible?

If not, then how can i check if the entry is in a category in the template and output a field group.

thanks ahead!

**Tags:** categories, field


---

## 1 answers

### Answer by username_1 on 2015-07-27. Score: 1 | Accepted answer

Could you use the entry types to achieve the same thing?
<https://buildwithcraft.com/features/entry-types>

> **Comments:**
> **username_0**: Yes, but why are Categories for then?  
> **username_1**: Categories would be used to simply classify your content within the system.  Unfortunately I don't know a way of having conditional logic in the CMS where you choose one value to display an appropriate field.  

---

