Forum Discussion
DonLarson
3 years agoQrew Elite
Lija,
You can hit an external service that validates Zip Codes. Here is the one from the USPS
https://www.usps.com/business/web-tools-apis/address-information-api.htm
------------------------------
Don Larson
------------------------------
You can hit an external service that validates Zip Codes. Here is the one from the USPS
https://www.usps.com/business/web-tools-apis/address-information-api.htm
------------------------------
Don Larson
------------------------------
- LijaHarris3 years agoQrew CadetI figured some of this out. I have gotten the prompt to work in the console, but how do I get it to work in the code page?
 ------------------------------
 Lija Harris
 ------------------------------- RyanStanford23 years agoQrew MemberHey Lija,
 From the code in your original question, you set the input variable to include the field xml tags of the xml api...
 var inputzip = "<field fid='16'>" + $("input[name=_fid_16]").val() + "</field>";
 So you comparison is trying to compare with those tags.
 What you are probably looking for is more like:
 var inputzip = $("input[name=_fid_16]").val();
 ------------------------------
 Ryan Stanford
 ------------------------------