# Add a validation on user input for phone number

**URL:** <https://community.glideapps.com/t/add-a-validation-on-user-input-for-phone-number/68688>\
**Category:** Ask for Help\
**Created:** [December 14, 2023, 12:20am UTC](https://community.glideapps.com/t/add-a-validation-on-user-input-for-phone-number/68688 "2023-12-14T00:20:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NADHIRAH\_HALIM](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nadhirah_halim/32/60557_2.png) [@NADHIRAH\_HALIM](https://community.glideapps.com/u/NADHIRAH_HALIM)\
**Post date:** [December 14, 2023, 12:20am UTC](https://community.glideapps.com/t/add-a-validation-on-user-input-for-phone-number/68688/1 "2023-12-14T00:20:10Z")

</div>

Hi, I want to add a validation for when user input the phone number but it did not add a “-” @ dash between the numbers, I want glide to return an error to the screen so the user can correct it. For example: 013-11111111

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/f/2ff6497c2987f983662f72afa3ba8f4c4b794e6b.png)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [December 14, 2023, 1:06am UTC](https://community.glideapps.com/t/add-a-validation-on-user-input-for-phone-number/68688/2 "2023-12-14T01:06:20Z")

</div>

There’s no native complex validation. You would have to do it yourself with a custom form, I guess.

> [@How do I create a custom form?](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014):
>
> I’m just dropping this here so I have something to refer people to when they ask. This is a simple concept app (copyable), that demonstrates the following techniques: Building custom forms for adding and editing list items (as an alternative to the native forms provided by Glide) Preventing duplicate new entries using [User Specific Columns](https://docs.glideapps.com/all/reference/data-editor/user-specific-columns) and [Relations](https://docs.glideapps.com/all/reference/data-editor/computed-columns/relation-column) Enforcing mandatory input items The use of visibility conditions and user specific booleans to control user flow There is nothing particula…
