Also on the phone part, it falls down if the phone number has an extension.
I would work on a way to have the formatting decorators (parentheses, dashes etc) only show up if there is data past that point.
So you could include " x" in the event that someone types in an extension or something like that.
Properly parsing/formatting phone numbers is harder than you'd think..
How do you specify the mask for different numbering schemes (other regions/countries)?
Do you pick one dynamically based on the selected country? Do you have that database of masks-to-country?
What if my contact number is international or foreign (even if I pick my country as USA)? Do you let the user select a mask? That feels clunky and more work than just leaving the phone number free-form..
Comments
The phone one is poor usability. Why is the text indicator half way through the input when it inserts text at the beginning?
I agree, I will rework this part. The main challenge was support for IE on this one.
Also on the phone part, it falls down if the phone number has an extension.
I would work on a way to have the formatting decorators (parentheses, dashes etc) only show up if there is data past that point.
So you could include " x" in the event that someone types in an extension or something like that.
Properly parsing/formatting phone numbers is harder than you'd think..
How do you specify the mask for different numbering schemes (other regions/countries)?
Do you pick one dynamically based on the selected country? Do you have that database of masks-to-country?
What if my contact number is international or foreign (even if I pick my country as USA)? Do you let the user select a mask? That feels clunky and more work than just leaving the phone number free-form..
It also allows you to paste any text in, and it will no longer match the mask.
Will fix it. https://github.com/vlamanna/BootstrapFormHelpers/issues/8
The phone field would be amazing to have polished, and I think you'd see a lot of adoption for just this field.
It doesn't work with a numpad either. Seems terribly broken overall.
It also fails on UK phone numbers, because it assumes a London-style number.
And the number pad doesn't work.
Otherwise, I like it though.
+1 on this. I thought it didn't work at all since I was using the Num pad for the phone number then realized numeric keys work.