# How to restrict the "-" in an input field

**URL:** https://forum.kirupa.com/t/how-to-restrict-the-in-an-input-field/168145
**Category:** Uncategorized
**Created:** [November 4, 2005, 9:12am UTC](https://forum.kirupa.com/t/how-to-restrict-the-in-an-input-field/168145 "2005-11-04T09:12:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Active\_webdesig](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Active\_webdesig](https://forum.kirupa.com/u/Active_webdesig)
#### Post date: [November 4, 2005, 9:12am UTC](https://forum.kirupa.com/t/how-to-restrict-the-in-an-input-field/168145/1 "2005-11-04T09:12:53Z")

</div>

hey fellaz,

How can I restrict the - character in an input field?  
cause this doesnt really work :ponder:

```auto
telefoon_txt.restrict = "0-9, -";

```
