Show notification with Javascript – Dynamics CRM

To dynamically show a notification message in a form, use the following JavaScript code:

/* Parameters:
* First parameter is the text you want to display
* Second parameter is to set the Message Level, these could be: INFO, ERROR, WARNING
* Third parameter is just an ID for the message
*/
 Xrm.Page.ui.setFormNotification("This is a notification!", "INFO", "1");

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 )

Connecting to %s