# Text entry needs validation

**URL:** <https://community.glideapps.com/t/text-entry-needs-validation/31744>\
**Category:** Ask for Help\
**Created:** [September 13, 2021, 8:44pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744 "2021-09-13T20:44:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manikandan\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manikandan_r/32/43482_2.png) [@Manikandan\_R](https://community.glideapps.com/u/Manikandan_R)\
**Post date:** [September 13, 2021, 8:44pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/1 "2021-09-13T20:44:17Z")

</div>

Hi

I have the phone number with 10 digits without country code.this I created a number entry field.I created a notification error if no entry from action.but how do I gets the error if I enter less than 10 and greater than 10.only 10 digit number to be allowed to enter.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 13, 2021, 9:04pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/2 "2021-09-13T21:04:39Z")

</div>

You can use a number entry component and set the minimum and maximum number to fit the range to valid numbers.

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/4/24e06dba6d42c9203c2d66d1d3f2c33d8c948e63.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:** [September 13, 2021, 11:43pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/3 "2021-09-13T23:43:46Z")

</div>

Not sure how it works in other countries, but in mine numbers always start with 0. Mine is 0933-XXX-XXX 😅

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 13, 2021, 11:47pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/4 "2021-09-13T23:47:45Z")

</div>

That could complicate it. You could always use a custom form and some sort of verification or an EX column with regex to check for valid formats, but yeah, I suppose each country is different.

---

<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:** [September 13, 2021, 11:48pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/5 "2021-09-13T23:48:56Z")

</div>

These validations are quite complex. The other day I tried an email validation and it’s much much more complicated than I anticipated it to be.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 13, 2021, 11:54pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/6 "2021-09-13T23:54:12Z")

</div>

Yeah, it can get ugly. It’s a lot of work to protect users from themselves. 😉

---

<div class="post-metadata">

**Author:** ![Manikandan\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manikandan_r/32/43482_2.png) [@Manikandan\_R](https://community.glideapps.com/u/Manikandan_R)\
**Post date:** [September 14, 2021, 9:35am UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/7 "2021-09-14T09:35:54Z")

</div>

Hi

It working if I gives below 9 digit or above 10 digit.but the validation error showing is not great.it looks ugly.its showing minimum value is 1000000000 and maximum value is 9999999999.

How to overcome this.

 ![IMG_20210914_150522](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/0/b0dcc74cf7a3c3d729d311887ccfd9014793908e.jpeg)

---

<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:** [September 14, 2021, 11:21am UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/8 "2021-09-14T11:21:45Z")

</div>

What’s the verbiage you want to use there?

---

<div class="post-metadata">

**Author:** ![Manikandan\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manikandan_r/32/43482_2.png) [@Manikandan\_R](https://community.glideapps.com/u/Manikandan_R)\
**Post date:** [September 15, 2021, 5:35pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/9 "2021-09-15T17:35:41Z")

</div>

I didn’t know what this question is?

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [September 15, 2021, 6:18pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/10 "2021-09-15T18:18:34Z")

</div>

you can use a experimental column with excel formula to check length of the string… or if you dont mind waiting 5-10 seconds… use GS formula

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [September 15, 2021, 6:21pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/11 "2021-09-15T18:21:35Z")

</div>

We have the same issue with Zip Codes…can’t do 10000 to 99999 because Rhode Island has Zip Codes starting with 0.

We really just need RegEx already.

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [September 15, 2021, 6:23pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/12 "2021-09-15T18:23:28Z")

</div>

get value as a text and check for numeric characters

---

<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:** [September 15, 2021, 8:52pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/13 "2021-09-15T20:52:16Z")

</div>

I mean what do you want to show in that “error” part instead of what Glide gives you.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 16, 2021, 3:16am UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/14 "2021-09-16T03:16:23Z")

</div>

> [@Robert\_Petitto](#):
>
> We really just need RegEx already.

We do have it! [Indirectly](https://docs.glideapps.com/all/reference/data-editor/computed-columns/experimental-code-column)… 😉

---

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [September 16, 2021, 3:49am UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/15 "2021-09-16T03:49:45Z")

</div>

I have already done a YC with Regex, if it needs to be modified or completed, let me know.

> [@RegEx Test](https://community.glideapps.com/t/regex-test/29977):
>
> Hello, Here is a script to test a string of characters according to a RegEx. For example, this is a test for a phone number. The parameters are: RegEx: RegEx format directly or via a text column (do not include / at the beginning and at the end) Text: String to test ReturnTrue: a column or a string or a value to return if the string matches the regex. ReturnFalse: a column or a string or a value to return if the string does not conform to the regex. link for YC [htt…](https://RegEx-Test.manun2.repl.co)

---

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [September 16, 2021, 4:03am UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/16 "2021-09-16T04:03:31Z")

</div>

For info, here are the possible zips codes in the US.

[http://i18napis.appspot.com/address/data/US](http://i18napis.appspot.com/address/data/US)

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [September 16, 2021, 5:00pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/17 "2021-09-16T17:00:13Z")

</div>

Ya…but I would want it natively in a form…where it greys out the submit button.

---

<div class="post-metadata">

**Author:** ![Manikandan\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manikandan_r/32/43482_2.png) [@Manikandan\_R](https://community.glideapps.com/u/Manikandan_R)\
**Post date:** [September 18, 2021, 6:35pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/18 "2021-09-18T18:35:30Z")

</div>

"Invalid phone number " if it no value or lesser than 10 and greater than 10 digits

---

<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:** [September 18, 2021, 11:57pm UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/19 "2021-09-18T23:57:56Z")

</div>

Here you go.

> **[Screen Recording 2021-09-19 at 06.56.20 AM](https://media.lowcode.agency/NQuY99Rb)**

```auto
<pre><span><style>

[data-test="app-text-field"] +caption {
display: none;
}

[data-test="app-text-field"]::after{
content: "Invalid phone number";
color: rgb(255,118,116);
margin-top: 8px;
text-align: start;
font-weight: 400;
font-size: 0.75rem;
line-height: 1.0625rem;
font-family: -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

```

Condition for rich text is as you described: if phone is empty or phone is less than 1000000000 or phone is greater than 9999999999.

---

<div class="post-metadata">

**Author:** ![Manikandan\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manikandan_r/32/43482_2.png) [@Manikandan\_R](https://community.glideapps.com/u/Manikandan_R)\
**Post date:** [September 19, 2021, 1:05am UTC](https://community.glideapps.com/t/text-entry-needs-validation/31744/20 "2021-09-19T01:05:27Z")

</div>

Vera level - we called it next level in tamil language.thank you.

[Next page](https://community.glideapps.com/t/text-entry-needs-validation/31744.md?page=2)
