[Custom Input Masks] Phone with optional extension

Forge Component
(30)
Published on 18:33 (4 hours ago) by Marcelo Ferreira
30 votes
Published on 18:33 (4 hours ago) 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)

Thanks!

Stephanie

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.

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