Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
Does the Masked Editor support conditions on the number of place holders?
posted

The problem I am trying to solve is that I have a grid reference that I want to mask where valid grid references are as follows:

A9, AA9, AA99, A99

So I was hoping to use a mask like the following

(?L-#9)

The problem is that I wan't the user to just be able to type A9 and that is it.  Unfortunately they can't do this because even though only one letter is required and only one number is required it still has place holders for the other letter and number.

So the user has to skip the first place-holder, type a letter then a number.

Is there a way to solve my problem?

User should be able to simply type A9 or AA99 or A99 or AA9 and have them formatted as

(A-9), (AA-99), (A-99) and (AA-9) respectively without having to tab over non required place holders