Page 1 of 1

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

Posted: Tue Nov 05, 2019 3:13 pm
by bry
I would like tel numbers to have hyphens inserted in phone number when phone numbers are included in forms.

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

Posted: Tue Nov 05, 2019 3:34 pm
by Pablo
There is no standard solution for this. This will require a custom script.

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

Posted: Tue Nov 05, 2019 3:48 pm
by BaconFries
Hi bry take a look at the following:
https://jsfiddle.net/karthikjsf/38vdpj4f/

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

Posted: Tue Nov 05, 2019 4:04 pm
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!!!!

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

Posted: Tue Nov 05, 2019 4:53 pm
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.

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

Posted: Tue Nov 05, 2019 6:12 pm
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.