CRM 2013 has a new feature to display notifications (i.e., Errors,Warnings and Information’s) like a banner message using JavaScript.

Notifications
Notifications

We can create both Form level notifications as well as Field notifications.

  • Form notifications
    • This method display notifications on the top of the record form.

              Syntax – Xrm.Page.ui.setFormNotification(<Notification message>,’ ERROR\WARNING\INFORMATION’);

Form Notifications
Form Notifications
  • Field notifications

              Syntax – Xrm.Page.getControl(Field).setNotification(<Notification message>);

Field Notifications
Field Notifications

Observations

  • The Save action happens even if you have form level error notifications
  • The order of notifications are 1) Information notifications 2) Error notifications and 3) Warning notifications
  • The banner only show 3 rows of notification, the user has to scroll down to see the other
  • Use Xrm.Page.ui.clearFormNotification() to clear the banner notifications

Refer this link for more details

🙂

Advertisements
Advertisements

3 responses to “Notifications using script – CRM 2013”

  1. Show custom messages as banner notifications – CRM 2011 | Rajeev Pentyala - Dynamics CRM Blog Avatar

    […] – CRM 2013, has a new feature to display  Notifications which is a supported […]

  2. Pooja Avatar
    Pooja

    Is there any way that we can show multiple errors in this form notification?

Leave a comment