Michael Philip's Blog

Writing about MS Tech with strong focus on Azure & CRM

Display Error , Warning , Info Notifications on form in CRM 2013/2015 Using Java Script

1 Comment

Notifications
Hi ,

Notifications were first introduced in CRM 2013 as a new feature in the java script SDK.

The following line of code shows to display notification

Xrm.Page.ui.setFormNotification(message, level , Id)

Message : Text to be displayed

Level : ERROR ,INFO , WARNING (Will specify Icon)

Id : Identify notification for clearing it later,

Info
Xrm.Page.ui.setFormNotification("INfo Message", "INFO", "Info1");

Error :
Xrm.Page.ui.setFormNotification("Error Message","ERROR", "Err1");

Warning :
Xrm.Page.ui.setFormNotification("Error Message","WARNING", "Warn1");

Clear notification by Id
Xrm.Page.ui.clearFormNotification("Err1");
Xrm.Page.ui.clearFormNotification("Info1");
Xrm.Page.ui.clearFormNotification("Warn1");

Advertisements

One thought on “Display Error , Warning , Info Notifications on form in CRM 2013/2015 Using Java Script

  1. Pingback: Display Notification on particular control in CRM Using Java Script - Technical Guru

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s