Home › Dynamics 365 Customer Engagement (CRM) › Dynamics 365 Form Notifications in JavaScript
Dynamics 365 Customer Engagement (CRM) · Nov 4, 2017 · 1 MIN READ

Dynamics 365 Form Notifications in JavaScript

Dynamics 365 has form notifications that can be fired in JavaScript.

Below is an example of each type – error, warning and information:

function FormNotification() {
 Xrm.Page.ui.setFormNotification('This is an error notification', 'ERROR'); 
 Xrm.Page.ui.setFormNotification('This is a warning notification', 'WARNING'); 
 Xrm.Page.ui.setFormNotification('This is an information notification', 'INFORMATION'); 
}

Let’s add these to the Save event handler:

Click Save. You will see the form notifications:

 

Carl de Souza
Keep learning. Keep building.

Explore AI, agents & Microsoft technology.

I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.

Subscribe on YouTube →
Carl de Souza Enterprise Architect at Microsoft · AI Technology Expert

Leave a Reply

Your email address will not be published. Required fields are marked *

Carl de Souza
KEEP LEARNING. KEEP BUILDING.

Explore AI, agents & Microsoft technology.

I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.