Patrick Lemiuex wrote: > > > Hi: > > Is there a way to get a state from a zipCode in flex, with a > formatter or such?
While the default Flex zip code validator only checks whether the value looks like an acceptable US ZIP or Canadian postal code, it wouldn't be too hard to subclass it to emit the associated state/territory for a given zip code in a custom validation result event. The range of ZIP codes mapping to each state or territory is relatively small and mostly contiguous, so you can probably get away with embedding it into a Flex class without a significant size overhead. You can find a list of the mappings here: http://en.wikipedia.org/wiki/List_of_ZIP_Codes_in_the_United_States#List_of_ZIP_code_ranges Jim

