Complex validation of a 5-digit US Zip Code in an electronic Adobe form.
Good afternoon everyone!
I am trying to go beyond the basic "Format 'Special' Zip Code" entry validation of Adobe electronic form fields.
What I would like to do is to validate the user entered Zip Code against valid ranges for the state that is (user) entered in the State field.
I have the USPS list of Zip Code ranges by state/region, and have already populated my 'State' dropdown field with the list of 2-digit state abbreviations.
What I am looking for is an 'If/Then' approach so that if TX is entered in the State field, then the Zip Code entered must be within one of the ranges of: 73301-73301 / 75001-75501 / 75503-79999 / 88510-88589.
Now, I am no JavaScript guru so please let me know if this will be too complex to be effective.
I would appreciate any help or suggestions y'all could throw my way.
Thank you!
