Saturday, 15 October 2016

Dynamics CRM Alert and Notification JavaScript Methods


display notification in dynamic crm

Description:

In this example we explain that how to display Notification message in Dynamic CRM. before CRM 2013 if you want to alert to user only standard JavaScript alert is supported and in which user must be acknowledge in order for the user to continue.

So now days additional alert method was introduced in CRM 2013,this method allow user to specify three different types of alert like “error”,”Information” and “warning”.below the example of the set notification in CRM page.


Xrm.Page.ui.setFormNotification("This is an INFORMATION notification.", "INFORMATION")

Xrm.Page.ui.setFormNotification("This is a WARNING notification. ", "WARNING")

Xrm.Page.ui.setFormNotification("This is an ERROR notification. ", "EROR")

To clear the form notification:

Xrm.Page.ui.clearFormNotification()

To set the notification to specific fields setNotification method is used.


Xrm.Page.getControl(“phone”).setNotification(“notification about phone field”)
This entry was posted in :

0 comments:

Post a Comment