CRM 2011 – Show Time Field Only

Posted by on May 6, 2014 in CRM 2011, Customizations, JavaScript |

I had a requirement to Show only Time portion of the date field in CRM as we had to schedule classes and the dates weren’t relevant just the times.

Here’s the function I’ve setup to hide the date portion of the field. unfortunately we’ve had to hide it using DOM manipulation as there is no way using the CRM SDK.

It’s a bit of a hack but it works. Tested with UR16.


Read More

CRM2011 – Update statuscode and statecode of any entity using Javascript

Posted by on Oct 31, 2013 in CRM 2011, Customizations |

A common requirement either using a ribbon button or fired from any other event on the CRM form is to change the statuscode and statecode programmatically.

This is used along with the jQuery library, so don’t forget to add it to the form on load.


Read More

CRM 2011 – Set IFRAME Loading screen

Posted by on Oct 17, 2013 in CRM 2011, Customizations, JavaScript |

So we needed to set an IFRAME loading screen before loading our custom webpage from Sharepoint instead of the blank white page while the sharepoint app pool is starting up.

iframe loading

These are the javascript functions I used:


Read More

CRM 2011 – Get Entity Type Code using Javascript

Posted by on Oct 16, 2013 in CRM 2011, Customizations, JavaScript |

So while developing a solution for a customer I had hard-coded the etc codes for each entity not realising that once deployed on the new system the entity/object type codes for each entity may change on the destination system.

Real life saver!



Read More

Customize Marketing List (List Member View)

Posted by on Aug 12, 2009 in CRM 4.0, Customizations |

Hello all,

Today i wanted to customize the ‘All Members’ view on the Marketing List entity and couldn’t. I was stuck for 1 hour trying to figure out how to do this. I stumbled upon and Jim explained it perfectly.


The ability to Customize the List Member View of a marketing list has not been made available in the Customization area of the UI, but can still be achieved with the UI in other means by using the Advanced Find feature.

Fig 1: Marketing List Detail Form displaying “List Member View”

A Marketing List can only be 1 of 3 types, an Account, Contact, or Lead. By default each of these 3 entities has a view associated with it named “All Members”, “Active Members”, and “Inactive Members”. The view that is displayed for the List Member View is based on the marketing list type. For example if the List is an Account type Marketing List, then only the Account entity views of “All Members”, “Active Members”, and “Inactive Members” will be available. The Lead and Contact entities also has these three views, but they will not be available to a Marketing List of type Account.

I will provide an example below of adding a single column only to the “All Members” view for all 3 entities, “Account”, “Contact”, and “Lead” for a total of 3 view modifications. Note: You must have permissions for Customizations to perform the following steps.

How To:

Step 1: Launch Advanced Find

Step 2: When Advanced Find Dialog opens, change the “Look for” Combo box to be “Views”

Step 3: Change the Select Option to “View”, “Equals”

Step 4: Use the Lookup to find “All Members”. NOTE: You will see 3 “All Members” listed in your Lookup window, each one represents an Account, Contact, or Lead “All Members View”. For this example select all three. Optional, you can save your view query for future use.

Fig 2: Advanced Find Dialog

Step 5: Click Find on the Advanced Find Dialog and you should now have a results page listing three “All Members” Views, representing the “All Members” view for an Account, Contact, and Lead. Double Click on Each View to open.

Step 6: When each View is Opened, Select the “Add Columns” button and a property list will appear. Choose a property from the list you want to have displayed as a column by check enabling the box next to the property, in this example I will be choosing the property “E-mail”. Exit the property dialog by clicking ‘OK’ after making your selection.

Fig 4: All Members View for Account after adding the E-mail Column

Step 7: You are free to make other modifications to this View as well, such as column and sort order. Make your changes, Select “Save and Close”, and repeat (if desired) to the other “All Members” views returned by the Advanced Find Query.

Step 8: Important! Finally we need to publish these changes before they can become active. The saved view you modified will appear as an additional item (draft) until it is published and overwrites the existing View. Navigate in the system to ‘Settings’ -> ‘Customization’ -> ‘Customize Entities’. Under the menu Item “More Actions” Select “Publish All Customizations” or you can Use the “Publish” Button.

Important Note: Use the “Publish” button To ONLY publish the highlighted Entity row from the Grid (for example if you customized the memberlist view for Contacts, then select the ‘Contact’ entity item in the grid before pressing Publish. If Using “Publish All Customizations”, be aware that every customization pending in the system will be published!


Result: The List Member View has been modified…

Fig 5: Modified List Member View

Read More

CRM 4: Adding tooltips to fields on forms

Posted by on Jul 14, 2009 in CRM 4.0, Customizations, JavaScript |

Tooltips are little help messages explaning a field or label (if you hover over a label you will notice a tooltip), I had a requirenment for adding a tooltip to a custom field with some custom help text.

After some digging through i found out the correct JScript property and method:

crmForm.all.my_custom_attribute_c.title = “Add a value here and it should get automatically populated..”;

End Result:


Read More
%d bloggers like this: