Skip to content

Comment on Extend Twitter Bootstrap with these Bootstrap Form Helpersparent

Comments

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.

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.