HOW TO: Show/Hide notifications (warnings) in MS CRM 2011

This post describes:
  1. How to disable notifications on the form
  2. How to show custom notification (info, warning, error)
  3. How to clean notification area
All scripts below require jQuery.
Most frequently I use these scripts to get rid of warning “The following error occurred: Missing Price List” and show custom messages



How to disable notifications on the form

Use following function to disable notifications on the form:


If for some reason you want to enable notifications on the form use following:


How to show custom notification (info, warning, error)

Using function below you can easily add you custom message in notification are.


Usage example:


How to clean notification area

If you want, for example clean notification area before showing your notification, use following function:


Update

I found discussion on the forum and decide to update the post with new method. This method allows to change the color of notification area:


You can download all sripts here:

1 comments:

avatar

Also, when implementing make sure to add quiet error handling in case .Notifications does not exist any more -- that way if it is not supported in your next rollup you aren't causing another error. This is unsupported after all..