# How to add custom validation in plugin configuration?

**URL:** <https://forum.shopware.com/t/how-to-add-custom-validation-in-plugin-configuration/60779>\
**Category:** Plugins\
**Created:** [1. August 2019 um 05:05 UTC](https://forum.shopware.com/t/how-to-add-custom-validation-in-plugin-configuration/60779 "2019-08-01T05:05:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [1. August 2019 um 05:05 UTC](https://forum.shopware.com/t/how-to-add-custom-validation-in-plugin-configuration/60779/1 "2019-08-01T05:05:03Z")

</div>

Hi

I have a text field in the configuration section of my plugin. The expected values are numbers separated by ‘,’ eg 1,5,10.&nbsp;User should not be able to set this value to 0. How I can validate the field?

---

<div class="post-metadata">

**Author:** ![wontfix](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@wontfix](https://forum.shopware.com/u/wontfix)\
**Post date:** [1. August 2019 um 08:57 UTC](https://forum.shopware.com/t/how-to-add-custom-validation-in-plugin-configuration/60779/2 "2019-08-01T08:57:26Z")

</div>

AFAIK its not possible due to bugs in extjs version used by shopware.

[https://forum.shopware.com/discussion/60552/config-xml-extjs-options-maskre-und-regex](https://forum.shopware.com/discussion/60552/config-xml-extjs-options-maskre-und-regex)

unless you can write your rule with something else than regular expression.
