Is it possible to automatically insert hyphens in phone numbers in tel form??

Issues related to forms.
Post Reply
User avatar
bry
 
 
Posts: 176
Joined: Fri Jan 11, 2008 8:44 pm

Is it possible to automatically insert hyphens in phone numbers in tel form??

Post by bry »

I would like tel numbers to have hyphens inserted in phone number when phone numbers are included in forms.
User avatar
Pablo
 
Posts: 21570
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Is it possible to automatically insert hyphens in phone numbers in tel form??

Post by Pablo »

There is no standard solution for this. This will require a custom script.
User avatar
BaconFries
 
 
Posts: 5324
Joined: Thu Aug 16, 2007 7:32 pm

Re: Is it possible to automatically insert hyphens in phone numbers in tel form??

Post by BaconFries »

Hi bry take a look at the following:
https://jsfiddle.net/karthikjsf/38vdpj4f/
User avatar
bry
 
 
Posts: 176
Joined: Fri Jan 11, 2008 8:44 pm

Re: Is it possible to automatically insert hyphens in phone numbers in tel form??

Post by bry »

Thanks all. Baconfries, I can't get that link to open. I am using my smart phone. I will try to find that when I get home.

Thanks much!!!!
User avatar
BaconFries
 
 
Posts: 5324
Joined: Thu Aug 16, 2007 7:32 pm

Re: Is it possible to automatically insert hyphens in phone numbers in tel form??

Post by BaconFries »

Working on my mobile. if it doesn't work then try to open in desktop mode in your mobile. To do this select the 3 dots top right and select desktop and it should work.
User avatar
bry
 
 
Posts: 176
Joined: Fri Jan 11, 2008 8:44 pm

Re: Is it possible to automatically insert hyphens in phone numbers in tel form??

Post by bry »

Thanks, I remember jsfiddle. I know I have used it in past. But I keep getting 502 Bad Gateway.

I will continue to try different angles.
Post Reply