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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s