[Skip to main content](#vessel-content)

#   Telephone Number Filed

##

- **[raidtariq](/forum/user/37035-raidtariq "View raidtariq's Profile")**
- [![raidtariq's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37035-raidtariq "View raidtariq's Profile") Topic Author
- [ Offline](/forum/user/37035-raidtariq)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 6 months ago [\#202497](#202497) by [raidtariq](/forum/user/37035-raidtariq "View raidtariq's Profile")  *[Telephone Number Filed](/forum/27-checkout/877112-telephone-number-filed#202497 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.37 -- Browser(s) name and version -- : Chrome  Hi,  At the checkout, the user will register to complete the checkout. One of the fields is &quot;Telephone Number&quot; which is standard that comes with Hikashop Business version. The problem is this field is a TEXT field and users can input a text instead of number. I am getting many users that they are registering but they do not give a real phone number. They type for example (camillanugan8827). I need to control the telephone number field to force people only to input a digit number instead of a text.  On the back-end, I didn't find any option that can makes the text field only a digit. Please, see the attached image for current configuration for Telephone field. Any idea how to that?  Thanks, RAID")* was created by *[raidtariq](/forum/user/37035-raidtariq "View raidtariq's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.37
-- Browser(s) name and version -- : Chrome

Hi,

At the checkout, the user will register to complete the checkout. One of the fields is "Telephone Number" which is standard that comes with Hikashop Business version. The problem is this field is a TEXT field and users can input a text instead of number. I am getting many users that they are registering but they do not give a real phone number. They type for example (camillanugan8827). I need to control the telephone number field to force people only to input a digit number instead of a text.

On the back-end, I didn't find any option that can makes the text field only a digit. Please, see the attached image for current configuration for Telephone field. Any idea how to that?

Thanks,
RAID

- [ ![1.jpg](/forum/attachment/24544) ](/forum/attachment/24544 "1.jpg") [ ](/forum/attachment/24544?download=1 "1.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzExMi10ZWxlcGhvbmUtbnVtYmVyLWZpbGVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 6 months ago [\#202502](#202502) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Telephone Number Filed](/forum/27-checkout/877112-telephone-number-filed#202502 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.37 -- Browser(s) name and version -- : Chrome  Hi,  At the checkout, the user will register to complete the checkout. One of the fields is &quot;Telephone Number&quot; which is standard that comes with Hikashop Business version. The problem is this field is a TEXT field and users can input a text instead of number. I am getting many users that they are registering but they do not give a real phone number. They type for example (camillanugan8827). I need to control the telephone number field to force people only to input a digit number instead of a text.  On the back-end, I didn't find any option that can makes the text field only a digit. Please, see the attached image for current configuration for Telephone field. Any idea how to that?  Thanks, RAID")*

Hi,

There is already such control by default on that field to only allow numbers in the field. So I'm surprised that you say that you can enter normal text in it.
Maybe there is a javascript error on the page preventing the check to work properly ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzExMi10ZWxlcGhvbmUtbnVtYmVyLWZpbGVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[raidtariq](/forum/user/37035-raidtariq "View raidtariq's Profile")**
- [![raidtariq's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37035-raidtariq "View raidtariq's Profile") Topic Author
- [ Offline](/forum/user/37035-raidtariq)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 6 months ago [\#202596](#202596) by [raidtariq](/forum/user/37035-raidtariq "View raidtariq's Profile")  Replied by *[raidtariq](/forum/user/37035-raidtariq "View raidtariq's Profile")* on topic *[Telephone Number Filed](/forum/27-checkout/877112-telephone-number-filed#202596 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.37 -- Browser(s) name and version -- : Chrome  Hi,  At the checkout, the user will register to complete the checkout. One of the fields is &quot;Telephone Number&quot; which is standard that comes with Hikashop Business version. The problem is this field is a TEXT field and users can input a text instead of number. I am getting many users that they are registering but they do not give a real phone number. They type for example (camillanugan8827). I need to control the telephone number field to force people only to input a digit number instead of a text.  On the back-end, I didn't find any option that can makes the text field only a digit. Please, see the attached image for current configuration for Telephone field. Any idea how to that?  Thanks, RAID")*

Hi,

Okay. How can I find the javascript that it might not working correctly? Is there any plugin that it might be disabled that control it?

Thanks,
RAID

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzExMi10ZWxlcGhvbmUtbnVtYmVyLWZpbGVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 6 months ago [\#202627](#202627) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Telephone Number Filed](/forum/27-checkout/877112-telephone-number-filed#202627 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.37 -- Browser(s) name and version -- : Chrome  Hi,  At the checkout, the user will register to complete the checkout. One of the fields is &quot;Telephone Number&quot; which is standard that comes with Hikashop Business version. The problem is this field is a TEXT field and users can input a text instead of number. I am getting many users that they are registering but they do not give a real phone number. They type for example (camillanugan8827). I need to control the telephone number field to force people only to input a digit number instead of a text.  On the back-end, I didn't find any option that can makes the text field only a digit. Please, see the attached image for current configuration for Telephone field. Any idea how to that?  Thanks, RAID")*

Hi,

Such javascript error could happen because of an error in another extension of your website, or a conflict between two extensions on your website.
If you look at your browser's javascript error log on the page with the issue, you might see the error message.
But the best would be that you give a link to the shop so that we can look at the issue and analyze it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzExMi10ZWxlcGhvbmUtbnVtYmVyLWZpbGVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[raidtariq](/forum/user/37035-raidtariq "View raidtariq's Profile")**
- [![raidtariq's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37035-raidtariq "View raidtariq's Profile") Topic Author
- [ Offline](/forum/user/37035-raidtariq)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 6 months ago [\#202675](#202675) by [raidtariq](/forum/user/37035-raidtariq "View raidtariq's Profile")  Replied by *[raidtariq](/forum/user/37035-raidtariq "View raidtariq's Profile")* on topic *[Telephone Number Filed](/forum/27-checkout/877112-telephone-number-filed#202675 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.37 -- Browser(s) name and version -- : Chrome  Hi,  At the checkout, the user will register to complete the checkout. One of the fields is &quot;Telephone Number&quot; which is standard that comes with Hikashop Business version. The problem is this field is a TEXT field and users can input a text instead of number. I am getting many users that they are registering but they do not give a real phone number. They type for example (camillanugan8827). I need to control the telephone number field to force people only to input a digit number instead of a text.  On the back-end, I didn't find any option that can makes the text field only a digit. Please, see the attached image for current configuration for Telephone field. Any idea how to that?  Thanks, RAID")*

Hi Nicolas,

In the Chrome, I am on the registration page. right click and "inspect element", there are no warnings or errors. Below is the link to the registration page which you can see the Telephone field accept text. Take a look and see if there is any conflict on javascript.

[ www.mmfoodclub.com/tucson-halal-restaurant/user/form](http://www.mmfoodclub.com/tucson-halal-restaurant/user/form)

Thanks,
RAID

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzExMi10ZWxlcGhvbmUtbnVtYmVyLWZpbGVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 6 months ago [\#202678](#202678) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Telephone Number Filed](/forum/27-checkout/877112-telephone-number-filed#202678 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.37 -- Browser(s) name and version -- : Chrome  Hi,  At the checkout, the user will register to complete the checkout. One of the fields is &quot;Telephone Number&quot; which is standard that comes with Hikashop Business version. The problem is this field is a TEXT field and users can input a text instead of number. I am getting many users that they are registering but they do not give a real phone number. They type for example (camillanugan8827). I need to control the telephone number field to force people only to input a digit number instead of a text.  On the back-end, I didn't find any option that can makes the text field only a digit. Please, see the attached image for current configuration for Telephone field. Any idea how to that?  Thanks, RAID")*

Hi,

I've done a test but the check worked : [ take.ms/VINVE](http://take.ms/VINVE)
So I've checked with your text camillanugan8827 and indeed it let the user continue. That's because the user entered some numbers and so the system considered the phone number as valid enough.
Having a more complex check would be possible but the issue is that it is really complex to handle all the possible checks for all the possible ways to write a phone number throughout the world.
You want to force only digits but then, what if the customer enters +33626552665 which is a valid phone number in France, and what if the customer enters (541) 754-3010 which is a valid phone number in the USA ? If we only accepted digits, these would be refused.
You can read more about this here:
[ stackoverflow.com/questions/4338267/vali...mber-with-javascript](http://stackoverflow.com/questions/4338267/validate-phone-number-with-javascript)
The problem is that we cannot be too strict with phone numbers checks as otherwise we'll refuse valid phone numbers.

A simpler solution and which is 100% guaranteed to allow only valid phone numbers is this one:
[ www.acyba.com/acysms/407-how-to-improve-...ml#phoneverification](https://www.acyba.com/acysms/407-how-to-improve-your-hikashop-website-using-acysms.html#phoneverification)
It will actually send a SMS with a code to validate the phone number.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzExMi10ZWxlcGhvbmUtbnVtYmVyLWZpbGVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[raidtariq](/forum/user/37035-raidtariq "View raidtariq's Profile")**
- [![raidtariq's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37035-raidtariq "View raidtariq's Profile") Topic Author
- [ Offline](/forum/user/37035-raidtariq)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 6 months ago [\#202731](#202731) by [raidtariq](/forum/user/37035-raidtariq "View raidtariq's Profile")  Replied by *[raidtariq](/forum/user/37035-raidtariq "View raidtariq's Profile")* on topic *[Telephone Number Filed](/forum/27-checkout/877112-telephone-number-filed#202731 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.37 -- Browser(s) name and version -- : Chrome  Hi,  At the checkout, the user will register to complete the checkout. One of the fields is &quot;Telephone Number&quot; which is standard that comes with Hikashop Business version. The problem is this field is a TEXT field and users can input a text instead of number. I am getting many users that they are registering but they do not give a real phone number. They type for example (camillanugan8827). I need to control the telephone number field to force people only to input a digit number instead of a text.  On the back-end, I didn't find any option that can makes the text field only a digit. Please, see the attached image for current configuration for Telephone field. Any idea how to that?  Thanks, RAID")*

Hi,

I see from where you are comping. While it doesn't make sense to me to allow letters on telephone field (symbols Okay but letter!), I think you're right. There is no reason to make this field only digit since anyone can use invalid phone number such as (555-555-5555) which is totally incorrect phone number even if the letter is not allowed. So, in both way using letter or not people can type incorrect number. Yes, the ACYSMS valid phone numbers is the way to go with if the phone number is considered as a high priority. I just getting some people registering to the system without placing orders with incorrect information (specially the phone number). I just want to narrow this. However, I do not need to valid the phone number to see if the person is real or not for the payment cause people will pay first using PayPal and then we will process the order. Since ACYSMS is expense, I will consider it in future ![:)](/media/kunena/emoticons/3.png ":)")

Thanks for your help,
RAID

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzExMi10ZWxlcGhvbmUtbnVtYmVyLWZpbGVkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.074 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
