OpenESignForms / openesignforms

Open eSignForms is the first open source SaaS web contracting platform
https://open.esignforms.com
107 stars 50 forks source link

UK and Canada Postal code #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We need a Canadian postal code format and European 

A Canadian postal code is a string of six characters that forms part of a 
postal address in Canada. Like British and Dutch postcodes, Canada's postal 
codes are alphanumeric. They are in the format A0A 0A0, where A is a letter and 
0 is a digit, with a space separating the third and fourth characters. 
According to Statistics Canada, about 850,000 postal codes exist in Canada,[2] 
using Forward Sortation Areas from A0A in Newfoundland to Y1A in Yukon.

For Great Britain, the longest post code is seven alphanumerics plus a space, 
or eight characters total. 
http://en.wikipedia.org/wiki/Postal_code According to wikipedia, the longest 
postal code including spaces or dashes is 8 alphanumeric characters, which I 
think would be safe. 

Original issue reported on code.google.com by lstro...@gmail.com on 12 Jun 2011 at 5:25

GoogleCodeExporter commented 9 years ago
Try using a general field with regular expression validation for now.

Original comment by yoz...@gmail.com on 12 Jun 2011 at 7:22