Please wait, loading...

 
There are lots of new feature in MS CRM 2013 and 2015 , One of them is  a  yellow color ribbon shows warning as per the use by  javascript

 Xrm.Page.ui.setFormNotification( ‘Massage to be shown’ );



//CODE


function warning() {
    var totalamouunt = Xrm.Page.getAttribute( “new_totalamount” ).getValue();

    if (totalamouunt != null) {
        Xrm.Page.ui.setFormNotification( ‘Massage to be shown’ );
    }
}
There are more in this like get notification for a field etc 
// clear a notification by using clearFormNotification() and use unique id .
Xrm.Page.ui.clearFormNotification( ‘1’);


// get notification for an field
Xrm.Page.getControl( “fieldName”).setNotification( “message” );


SOURCE : JUST2CODE.IN
Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/Microsoftdynamics365.png?fit=640%2C651
Microsoft Dynamics Community Profile

Learn more