# input type="tel" - only numbers

**URL:** <https://forum.bootstrapstudio.io/t/input-type-tel-only-numbers/5459>\
**Category:** Bootstrap Studio Help\
**Created:** [September 17, 2019, 9:39am UTC](https://forum.bootstrapstudio.io/t/input-type-tel-only-numbers/5459 "2019-09-17T09:39:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rosbiz](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/rosbiz/32/571_2.png) [@rosbiz](https://forum.bootstrapstudio.io/u/rosbiz)\
**Post date:** [September 17, 2019, 9:39am UTC](https://forum.bootstrapstudio.io/t/input-type-tel-only-numbers/5459/1 "2019-09-17T09:39:42Z")

</div>

Hey. Tell me how to make it so that in the field input type="tel" could you enter only numbers?

---

<div class="post-metadata">

**Author:** ![twinstream](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/t/ecae2f/32.png) [@twinstream](https://forum.bootstrapstudio.io/u/twinstream)\
**Post date:** [September 18, 2019, 2:00pm UTC](https://forum.bootstrapstudio.io/t/input-type-tel-only-numbers/5459/2 "2019-09-18T14:00:51Z")

</div>

Without knowing more information such a geo location etc I would look into the pattern attribute and also a keyup jquery function for more advanced methods.

---

<div class="post-metadata">

**Author:** ![rosbiz](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/rosbiz/32/571_2.png) [@rosbiz](https://forum.bootstrapstudio.io/u/rosbiz)\
**Post date:** [September 18, 2019, 6:42pm UTC](https://forum.bootstrapstudio.io/t/input-type-tel-only-numbers/5459/3 "2019-09-18T18:42:04Z")

</div>

It is resolved. I added to the element pattern such a regular expression

```auto
(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?

```

This allowed you to make a phone number field

---

<div class="post-metadata">

**Author:** ![twinstream](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/t/ecae2f/32.png) [@twinstream](https://forum.bootstrapstudio.io/u/twinstream)\
**Post date:** [September 18, 2019, 7:07pm UTC](https://forum.bootstrapstudio.io/t/input-type-tel-only-numbers/5459/4 "2019-09-18T19:07:55Z")

</div>

Nice pattern...works well !
