-
Book Overview & Buying
-
Table Of Contents
Microsoft Dynamics CRM 2011 Scripting Cookbook
By :
In this recipe, we will be retrieving information from the Phone field of a Contact entity. We can work in the same fashion with any other default text fields on any entity form, or with custom fields.
If you have a solution created from the previous chapter, open that solution. If not, create a new solution package. We will be saving all configurations as part of a solution package.
In order to associate our script with a field on the Contact form, we will follow these steps:
Navigate to Settings | Solutions.
Open the previously created solution package or create a new one.
Select Entities, and click on Add Existing to add the Contact entity, as shown in the following screenshot:

Scroll down until you find Contact and select it. Then, click on OK, as shown in the following screenshot:

Now your solution will include customization options for Contact:

Click on Web Resources and add a new JScript resource. We will name it JSContact, as shown in...
Change the font size
Change margin width
Change background colour