# Text Field & Characters Blacklist

**URL:** <https://forum.inductiveautomation.com/t/text-field-characters-blacklist/2369>\
**Category:** Ignition\
**Created:** [November 26, 2010, 10:53pm UTC](https://forum.inductiveautomation.com/t/text-field-characters-blacklist/2369 "2010-11-26T22:53:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryan\_cook](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@bryan\_cook](https://forum.inductiveautomation.com/u/bryan_cook)\
**Post date:** [November 26, 2010, 10:53pm UTC](https://forum.inductiveautomation.com/t/text-field-characters-blacklist/2369/1 "2010-11-26T22:53:29Z")

</div>

I’d like to see a couple of properties added to the text field that allows me to specify and enforce a list of disallowed characters …

Use Blacklist? that allows me to specify a boolean value indicating whether the blacklist is enforced or not, similar to Use Bounds? on a numeric text field.

Error on Blacklisted Character that allows me to specify a boolean value specifying whether an error is invoked when a blacklisted character exists, similar to Error on Out-of-Bounds on a numeric text field

Blacklisted Character Message that allows me to specify a string that’ll be shown when Error on Blacklisted Character is true and a blacklisted character exists, similar to Out of Bounds Message on a numeric text field.

Blacklisted Characters that allows me to specify a list of characters I’d like to have blacklisted.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [December 3, 2010, 5:37pm UTC](https://forum.inductiveautomation.com/t/text-field-characters-blacklist/2369/2 "2010-12-03T17:37:18Z")

</div>

Decent idea - have you tried using the formatted text field to accomplish this? Its pretty easy to write a regex that accepts anything except for a blacklist:  
For example, this regex will restrict the chars “x” and #  
[^x#]\*

---

<div class="post-metadata">

**Author:** ![bryan\_cook](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@bryan\_cook](https://forum.inductiveautomation.com/u/bryan_cook)\
**Post date:** [December 6, 2010, 6:29pm UTC](https://forum.inductiveautomation.com/t/text-field-characters-blacklist/2369/3 "2010-12-06T18:29:02Z")

</div>

Ah, looked right over that control … I’ll check it out … regardless, I think having properties would be nice and easy, (and save me from having to decipher regular expressions) …

Thanks!
