Postal code field is not in the right format.

Created on 19 July 2017, over 7 years ago
Updated 30 July 2024, 8 months ago

I set the field settings to use only my contry Brazil, now I cannot save my content, it show the error "Postal code field is not in the right format."

I tested with blank value, 4 digits, 5 digits, 8 digits, etc.

the proper mask is #####-###, I tested with: 12345-678 and 12345678 (without hiphen)

I try to locate it in the module code and the library code, no luck. If I could pinpoint the right place, I could fix it and submit the patch for you.

🐛 Bug report
Status

Closed: duplicate

Version

1.9

Component

Code

Created by

🇧🇷Brazil afeijo Porto Alegre

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇪🇬Egypt alexseif

    I have the same issue with Egypt and plugin version Address 8.x-1.9
    The pattern is \d{5} and I enter 12345 it's not accepting it.

    1. What is a solution I can apply now from the Administration panel?
    2. Is the only solution to override the module?

Production build 0.71.5 2024