[Custom Input Masks] Clear redundant mask in custom input mask

Forge Component
(43)
Published on 9 Mar by Marcelo Ferreira
43 votes
Published on 9 Mar by Marcelo Ferreira


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.

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