Forums

Eliminating the country code from the phone mask

emills01 07 Aug, 2019
I have a form that is used in a certain region and not only is it not necessary to have visitors specify the country code in the phone number, I'm a little concerned that some or most of them won't know how to input the full number correctly.

The default phone number mask doesn't seem to allow a different format like (999)999-9999 like I need.

In previous versions of CF I was able to use
data-inputmask='mask' : '(999)999-9999' 

as an extra parameter but this isn't working in CF 6. Is there a correct way to implement this?
healyhatman 08 Aug, 2019
use a : in place of the = as well
This topic is locked and no more replies can be posted.