[Custom Input Masks] Phone with optional extension
Question
Forge component by Sara Gonçalves

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

Thanks!

Stephanie

mvp_badge
MVP

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.

Cheers.

mvp_badge
MVP

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.

Regards,

Marcelo

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.