CRM Address Validator

CRM 2011 Address Validator using Jquery/Javascript

Posted on Updated on

I recently implemented an address validator for CRM 2011 using Jquery and Javascript for New Zealand. I used the Address Finder API –¬†

To implement this

1. Create an HTML page with a textbox


2. Add a Javascript on the HTML page pointing to the Address Finder API


3. Add a onLoad event for the HTML page event

4. In the event handler add following code –


5. PopulateHTMControl is executed when user selects an address from the Addressfinder textbox


6. The parameter of the PopulateHTMControl returns various attributes of the selected address

7. Easily map the CRM fields to the attributes returned by the AddressFinder.

Hope this helps!