phone field with constraint and format Is there a way to make a phone field that would only accept numbers (no spaces) and will format them as the user types?

Note: I read somewhere that text fields can be configured that way but I could not find how. I also tried integer field but this feels wrong
Try the Masked-Input module. It does exactly what you are looking for.