Creating an Input Mask but with varied number of characters

I’m creating an Input Mask using the Input Mask PlugIn which looks excellent although I think my requirement may be a bit ambitious for it because one portion of what I need it for varies in length…

I want Users to be able to enter an order number quickly. The first chunk of the order number can be 1,2,3 or 4 alphanumeric characters long. Examples are as follows…

9-123456-A8Z
12-123456-888
ABC1-123456-G7H
XYZ-123456-888

If the order number starts with an A, the first chunk will always be 4 alphanumeric characters.
If it starts with an X, the first chunk will always be 3 alphanumeric characters.

Is this something an Input Mask can do and, if so, how might I do it? Otherwise, is there another way of doing this?

This topic was automatically closed after 70 days. New replies are no longer allowed.