Dynamics 365 – Xrm.Page.ui.setFormNotification

To add notifications on Forms you can use the very handy Xrm.Page.ui.setFormNotification.

This will allow you to show the following alerts.

2017-08-21 14_34_25-Clipboard

To add them use the following:-

Xrm.Page.ui.setFormNotification(“Important Test”, “ERROR”)
Xrm.Page.ui.setFormNotification(“Warning Test”, “WARNING”)
Xrm.Page.ui.setFormNotification(“Info Test”, “INFO”)

NOTE:- Alot of blog posts out there have the last one as:-

Xrm.Page.ui.setFormNotification(“Info Test”, “INFORMATION”)

This is NOT correct and will mean the information icon won’t appear.

See the official documentation here:-


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 )

Facebook photo

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

Connecting to %s