3

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

2

Try the Masked-Input module. It does exactly what you are looking for.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.