Wednesday, October 28, 2009

Custom Warning Message on CRM Form

Very nice and impressive notification method.

addNotification = function(message) {

    var notificationHTML = '<DIV class="Notification"><TABLE cellSpacing="0" cellPadding="0"><TBODY><TR><TD vAlign="top"><IMG class="ms-crm-Lookup-Item" alt="" src="/_imgs/error/notif_icn_crit16.png" /></TD><TD><SPAN>' + message + '</SPAN></TD></TR></TBODY></TABLE></DIV>';

    var notificationsArea = document.getElementById('Notifications');
    if (notificationsArea == null) return;

    notificationsArea.innerHTML += notificationHTML; = 'block';

//Example of utilizations
addNotification('Some warning message that you want to show to the user ');

El del CRM
Dynamics CRM Tools

No comments:

Post a Comment