Can I validate/force digits in an input mask?

Home Forum Laying out a Form Can I validate/force digits in an input mask?

This topic contains 2 replies, has 0 voices, and was last updated by  srogers 7 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #816

    srogers
    Participant

    I have an input mask ##### that acts as the search criteria for a database lookup. If a user inputs a number with less that 5 digits (leaving off leading zeroes, for example), the lookup will fail. Can I validate that the field has all five digits?

    #5833

    pmeidinger
    Participant

    How about adding simple branch that uses the Length function on your mask input? If the lenght is 5, do your lookup; otherwise show a message (or something). Like so:

    http://i.imgur.com/aJugM.png

    #5834

    srogers
    Participant

    Yes, that works well. Figured there’d be a function to let me do this easily. Thanks for the help.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.