[Custom Input Masks] Phone with optional extension

Forge Component
Published on 2019-04-22 by Marcelo Ferreira
42 votes
Published on 2019-04-22 by Marcelo Ferreira

Can you ost a sample of how to do a phone mask with an optional extension? (extension also has a variable number of digits)



Hello StephanieG

In a Text Mask, you can try something like that: 

"(999) 9999-9999 [ext.9{0,5}]"

The 9{0,5} tells that when the ext is used, you can enter from 1 up to 5 extra digits.

Hope this helps.


Hi StephanieG,

Your problem was solved? If yes can you mark Eduardo's answer as solution. If not let us know how we can further help you.