CRM 2011 Custom Form Notification

The notification area on the CRM Form is a nice place to put information, warnings and critical information. This can be easily done with the following javascript function: addNotification = function (message, level) { var notificationsArea = document.getElementById(‘crmNotifications’); if (notificationsArea == null) { alert(‘div not found’); return; } if (level == 1) { //critical notificationsArea.AddNotification(‘mep1’,…


CRM 2011 Sub Grid Refresh

In CRM 2011 there is the new native feature of being able to place a sub grid in a form. It is very common that on the form you have a total or summary field that you want updated when data is added, updated or removed from the sub grid. The following code worked nicely…


A Simple Filtered Lookup

From Lookup:   var lookupItem = new Array; lookupItem = crmForm.all.new_lookup1.DataValue; alert(lookupItem[0].id); alert(lookupItem[0].name); var searchVal = lookupItem[0].name;  crmForm.all.new_lookup2.additionalparams = ‘search=’ + searchVal.replace(“&”,”%26″).replace(“+”,”%2b”);   From Picklist:   var searchval = new Array; searchval = crmForm.all.new_picklist1.SelectedValue; crmForm.all.new_lookup1.additionalparams = ‘search=’ + searchVal.replace(“&”,”%26″).replace(“+”,”%2b”);