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 –¬†http://www.addressfinder.co.nz

To implement this

1. Create an HTML page with a textbox

AddressValidator

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

AddressValidator

3. Add a onLoad event for the HTML page event

4. In the event handler add following code –

AddressValidator

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

AddressValidator

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!

Cheers