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
2116
Can you setup a mask for postal codes where the dash is optional?
posted

When I'm using a masked editor with a mask like #####-#### and the user edits the value it always set the value with a trailing dash whether the user enters the full postal code or not.  Is they a way around this behaviour?

Parents
No Data
Reply
  • 69686
    posted

    Hello,

    I am assuming that the "trailing dash" is the pad character. This is because the # is a digit placeholder and the digit is required. You can use n instead of #, as n is a non-required digit placeholder.

Children