# Phone number

**URL:** https://community.glideapps.com/t/phone-number/78245
**Category:** Ask for Help
**Created:** [November 28, 2024, 10:12am UTC](https://community.glideapps.com/t/phone-number/78245 "2024-11-28T10:12:29Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Lomanto](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@Lomanto](https://community.glideapps.com/u/Lomanto)
#### Post date: [November 28, 2024, 10:12am UTC](https://community.glideapps.com/t/phone-number/78245/1 "2024-11-28T10:12:29Z")

</div>

I need to capture the user’s phone number to place inside a specific field and use it to validate entry into the app using AI.

---

<div class="post-metadata">

### Author: ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)
#### Post date: [November 28, 2024, 1:35pm UTC](https://community.glideapps.com/t/phone-number/78245/2 "2024-11-28T13:35:03Z")

</div>

Create a Helper table with a “phone number” column as user-specific and a “JavaScript” column:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/6/16082fe3e10bab4fcdbe537c39b588602dec79c5.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/1/710660ed4ebe890a57d7aa17aa43587395d5f4a2.png)

```javascript
const patt = /^(\+?\d{1,3}[-.\s]?)?(\(?\d{3}\)?[-.\s]?)?\d{3}[-.\s]?\d{4}$/;
  return patt.test(p1);

```

Add one empty row.

In your layout, instead of using a form container, use a screen linked to the helper table and set a phone input and a button to submit:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/7/87c9627348fbfccd972299ee4d7a8344e97e90dc.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/e/4e8ff0cc354baf3b6d62922a55f6e5874a680238.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/2/d29def80b102401b3700feb2122709f1c01bc95a.png)

Add an AI component and set these configurations with these messages:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/9/39f67f6307af49760965b4caefc876643360189b.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/e/ae6eddcb1e0dc5ab03032786d4061f2d3189d7ee.png)

Here is the result:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/a/1a3b1bd8c0b2f5c3173d310f8977cf1572f9c133.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/b/5b77bb408d4b0427803639cd424d7da4f5375fce.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/9/e9bc4355ea61e07bcf7349896ba548d34a00f1ca.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/3/731f32652c1501135281cdd047c639132003146d.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/optimized/3X/0/4/048c51d6bff7c1acfdf92ee88c5cd27e61b705e2_2_690x46.png)

You can create a workflow to add more steps to the submission action, like toast notification, clear helper table, but don’t forget to add row in the submission table! 🙂

---

<div class="post-metadata">

### Author: ![Lomanto](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@Lomanto](https://community.glideapps.com/u/Lomanto)
#### Post date: [November 28, 2024, 8:35pm UTC](https://community.glideapps.com/t/phone-number/78245/3 "2024-11-28T20:35:47Z")

</div>

I followed all the steps you very kindly showed me and it worked correctly.  
However, I don’t think I made myself understood and I apologize for that.  
From what I understand, your example serves to validate a phone number.  
What I need is to capture the phone that is running the application.  
A clearer example would be how to get the cell phone’s IMEI to use it as an automatic password.

---

<div class="post-metadata">

### Author: ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)
#### Post date: [November 28, 2024, 8:36pm UTC](https://community.glideapps.com/t/phone-number/78245/4 "2024-11-28T20:36:25Z")

</div>

Try to explain more about what you want to do.

---

<div class="post-metadata">

### Author: ![Lomanto](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@Lomanto](https://community.glideapps.com/u/Lomanto)
#### Post date: [November 28, 2024, 8:41pm UTC](https://community.glideapps.com/t/phone-number/78245/5 "2024-11-28T20:41:06Z")

</div>

From what I understand, your example serves to validate a phone number.  
What I need is to capture the phone that is running the application.  
A clearer example would be how to get the cell phone’s IMEI to use it as an automatic password.

---

<div class="post-metadata">

### Author: ![Lomanto](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@Lomanto](https://community.glideapps.com/u/Lomanto)
#### Post date: [November 28, 2024, 8:42pm UTC](https://community.glideapps.com/t/phone-number/78245/6 "2024-11-28T20:42:56Z")

</div>

I tried to use AI to capture the IMEI but, I believe for data protection reasons, it says it can’t find it.

---

<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: [November 28, 2024, 10:23pm UTC](https://community.glideapps.com/t/phone-number/78245/7 "2024-11-28T22:23:51Z")

</div>

There is no easy or reliable way to identify a specific device. That’s been a challenge of any ad service on the internet. You can use certain user agent values provided by the Device Info column, but even that is not reliable. You are better off just using the built in Glide authentication if you need to identify a specific user.

---

<div class="post-metadata">

### Author: ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)
#### Post date: [November 28, 2024, 10:42pm UTC](https://community.glideapps.com/t/phone-number/78245/8 "2024-11-28T22:42:41Z")

</div>

Actually, in any case where you need authentication and authorization, use the native Glide Auth System.

---

<div class="post-metadata">

### Author: ![Lomanto](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@Lomanto](https://community.glideapps.com/u/Lomanto)
#### Post date: [November 28, 2024, 11:12pm UTC](https://community.glideapps.com/t/phone-number/78245/9 "2024-11-28T23:12:05Z")

</div>

Thanks.

---

<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: [November 28, 2024, 11:21pm UTC](https://community.glideapps.com/t/phone-number/78245/10 "2024-11-28T23:21:25Z")

</div>

Just for more context, I have a case where one of my users authenticates on two different devices, but I need certain features to work differently depending on the specific device. I’ve done a lot of research in ways to positively identify the device, but the best you can do is build a fingerprint based on several different values from the browser user agent. Problem is that those values can change as browsers are updated, or a user maybe uses different browsers or screen resolutions. The whole point is that browsers try to prevent websites from tracking users without their consent.

---

<div class="post-metadata">

### Author: ![Lomanto](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@Lomanto](https://community.glideapps.com/u/Lomanto)
#### Post date: [November 28, 2024, 11:26pm UTC](https://community.glideapps.com/t/phone-number/78245/11 "2024-11-28T23:26:48Z")

</div>

Thank you very much for the explanation.  
You guys are impressive.  
Have a good night.
