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

Forge Component
Published on 23 Jul by Huarlem Lima
45 votes
Published on 23 Jul by Huarlem Lima

Hi, I'm using Custom mask input: MaskText

I set the format for the phone: 


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.



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.