# How to ensure that custom fields appear only for one category of products?

**URL:** <https://forum.shopware.com/t/how-to-ensure-that-custom-fields-appear-only-for-one-category-of-products/93770>\
**Category:** Shopware 6 (English)\
**Created:** [1. April 2022 um 13:35 UTC](https://forum.shopware.com/t/how-to-ensure-that-custom-fields-appear-only-for-one-category-of-products/93770 "2022-04-01T13:35:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasan.h](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hasan.h](https://forum.shopware.com/u/hasan.h)\
**Post date:** [1. April 2022 um 13:35 UTC](https://forum.shopware.com/t/how-to-ensure-that-custom-fields-appear-only-for-one-category-of-products/93770/1 "2022-04-01T13:35:41Z")

</div>

Hello,  
I am creating custom fields via code but I want them to be visible only for one category of products. How do I do this?

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [1. April 2022 um 13:44 UTC](https://forum.shopware.com/t/how-to-ensure-that-custom-fields-appear-only-for-one-category-of-products/93770/2 "2022-04-01T13:44:35Z")

</div>

I would only show them if they are filled. And then, don’t fill them if not needed.

---

<div class="post-metadata">

**Author:** ![hasan.h](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hasan.h](https://forum.shopware.com/u/hasan.h)\
**Post date:** [4. April 2022 um 00:16 UTC](https://forum.shopware.com/t/how-to-ensure-that-custom-fields-appear-only-for-one-category-of-products/93770/3 "2022-04-04T00:16:20Z")

</div>

Apologies. I meant that custom fields should not be visible in administration if the category is not the one.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [4. April 2022 um 08:26 UTC](https://forum.shopware.com/t/how-to-ensure-that-custom-fields-appear-only-for-one-category-of-products/93770/4 "2022-04-04T08:26:30Z")

</div>

Within the standard, it is not possible.

You have to change the shopware administration templates (guess it would be VUE) to only show the customs fields in only one category.
