Microsoft introduced an additional alert method that is specific to CRM, Xrm.Page.ui.setFormNotification. This newer method allows you to specify three different types of alerts: error, information, and warning. Furthermore, instead of popping a window open over the current window, setFormNotification embeds the notification in the CRM page itself. These codes are:
Now to clear these you need to put
For specific fields, you can use these methods
attribute stands for field attribute.
notification is the message that you want to pass.
till then happy dynamics