orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
517 stars 221 forks source link

International phone number and currency fields #992

Open ebruchez opened 11 years ago

ebruchez commented 11 years ago

MD comment: "with the user specifying the input mask via a regexp. I can see that it would be good to be able to specify the country as well and the country code is inserted etc."

avernet commented 7 years ago

It seems to me that the Inputmask library works pretty well, and would be a good candidate as the basis for an "input mask" component. At a first glance, I am not noticing any of the very annoying behaviors exhibited by some other libraries I had tried in the past with the cursor position, cut/copy/paste, or entering some of the separator characters.

ebruchez commented 7 years ago

For international phone numbers, see the intl-tel-input jQuery plugin.

ebruchez commented 7 years ago

It is based on a Google's libphonenumber.