Input mask for text field of varying lengths

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pikomina
    New Member
    • Mar 2010
    • 2

    Input mask for text field of varying lengths

    I am trying to create an input mask for a client number. The format is 4 numeric digits, a dash, and then anywhere from 4-8 alphanumeric characters. However, the input mask that I have entered (0000-AAAAAAA) forces me to enter 8 characters on the right side of the dash. How can I create an input mask that can handle strings of varying lengths?
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    Actually, the Input Mask you posted requires 7 characters to the right, not eight!
    But a little a makes the character optional, so try

    0000-AAAAaaaa

    Linq ;0)>

    Comment

    • pikomina
      New Member
      • Mar 2010
      • 2

      #3
      Perfect! Thank you so much!

      Comment

      • missinglinq
        Recognized Expert Specialist
        • Nov 2006
        • 3533

        #4
        Glad we could help!

        Linq ;0)>

        Comment

        Working...