On-Premise vs Dynamics 365
If using Dynamics 365, follow our Dynamics 365 instructions.
The “AutoaddressContact” file that you downloaded needs to be edited if you are running an on-premise version of Dynamics. Open the file using a text editor. In the file, there are numerous lines containing “window.parent”, such as the code shown below.
Every instance of “window.parent” must be removed as well as any “.” That comes after. For example, the code shown above will become:
Latest Compressed JQuery
The latest JQuery file is also needed. To get this, go to http://jquery.com/download/.
Download the latest compressed, production version such as the following:
Adding Autoaddress Control to your formWe will add the Autoaddress Control to your existing Contacts form. Hover over the Sales tab until the drop-down menue appears and click the "Contacts" button.
This will open a page like below:
From here click the “+ New” button to open the Contact form. When the Contact form has opened click the “Form” button at the top of the page as seen below
Clicking on the "Form" button will open the form editor and it will look like the following screen
In the “Form Libraries” list, select “new_contacts_composite.js” and click the “remove” button. Next, click the “Add” button to open the “Look Up Record” window.
At the bottom of this window is a button labelled “New”. Click this button to open the “Web Resource: New” window.
Next, click the “Save” button at the top of the page and close the web resource window when complete. The new file will now be populated in the “Look Up Record” Window list. Select it and click the “Add” button. This will close the look up window and populate the “Form Libraries” list in the “Form Properties” window with the new script. It will look like this:
Repeat to upload the "AutoaddressContact" and latest JQuery files. Once all the files have been uploaded, the “Form Libraries” should like this:
Ensure the JQuery file is top of the list. If it’s not, select it and click the “Up” button until it is at the top.