Input Mask dash for zip code - can it conditionally appear?

N

Nicolle K.

Hello!

I am have a field containing zip codes. I've set up the input mask, and I
understand that I can choose whether or not I want to store the dash between
the first 5 and last 4 characters. The mask is such that the first 5
characters are required and the last 4 are optional. Ideally, I would like
the dash to be stored, but only if all 9 characters are there. If only 5 are
available the dash shouldn't appear. Currently, if someone enters the first
5 it shows as 53202-

Is this possible? Thanks in advance for your help!

Nicolle
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top