[Custom Input Masks] Clear redundant mask in custom input mask
Question
Forge component by Sara Gonçalves


Hi, I'm using Custom mask input: MaskText

I set the format for the phone: 

"999-999-99999999"

and the result is:

It worked well but the question is How I remove the redundant mask if  I don't want to fill all the characters like the format? That means the input show only the value of phone and no longer show the redundant mask.

Thanks.

mvp_badge
MVP

Hi,

I dunno if i understand what are you trying to accomplish but looks like you don't want all the numbers of your mask to be mandatory you can use [ ] to make some numbers optional. For example this mask 999-999-9999[9999] will make that that last part only 4 numbers are mandatory but the mask will accept 8.

Regards,

Marcelo

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