Write down following code on Pageload event of CRM form(Popup will move with ur mouse pointer.)
var CRM_FORM_TYPE_CREATE = 1;
var CRM_FORM_TYPE_UPDATE = 2;
var CRM_FORM_TYPE_READ_ONLY = 3;
var CRM_FORM_TYPE_DISABLED = 4;
var CRM_FORM_TYPE_QUICK_CREATE = 5;
var CRM_FORM_TYPE_BULK_EDIT = 6;
var CRM_FORM_TYPE_UPDATE = 2;
var CRM_FORM_TYPE_READ_ONLY = 3;
var CRM_FORM_TYPE_DISABLED = 4;
var CRM_FORM_TYPE_QUICK_CREATE = 5;
var CRM_FORM_TYPE_BULK_EDIT = 6;
switch (crmForm.FormType)
{
case CRM_FORM_TYPE_CREATE :
case CRM_FORM_TYPE_UPDATE :
case CRM_FORM_TYPE_BULK_EDIT :
{
case CRM_FORM_TYPE_CREATE :
case CRM_FORM_TYPE_UPDATE :
case CRM_FORM_TYPE_BULK_EDIT :
var oPopup = window.createPopup();
var oPopupBody = oPopup.document.body;
oPopupBody.style.backgroundColor = 'yellow';
oPopupBody.style.fontFamily = 'Tahoma';
oPopupBody.style.border = '2px solid black';
function My_OrgName_showRatingPopup ()
{
oPopupBody.innerHTML = "_div>_table style='font-size:xx-small'>";
oPopupBody.innerHTML += "_tr>_td>_b>Note :Sent Button Click :_/b>The system will mark this cases as resolved. If you want to keep this case open or on hold, then please reactivate this case and change the case status._/td>_/tr>_/font>_/table>_/div>";var
oPopupBody.style.fontFamily = 'Tahoma';
oPopupBody.style.border = '2px solid black';
function My_OrgName_showRatingPopup ()
{
oPopupBody.innerHTML = "_div>_table style='font-size:xx-small'>";
oPopupBody.innerHTML += "_tr>_td>_b>Note :Sent Button Click :_/b>The system will mark this cases as resolved. If you want to keep this case open or on hold, then please reactivate this case and change the case status._/td>_/tr>_/font>_/table>_/div>";var
x_coord = -50;
var y_coord = -70;
var width =230;
var height = 60;
var documentElement = event.srcElement;
oPopup.show(x_coord, y_coord, width, height, documentElement);
}
var y_coord = -70;
var width =230;
var height = 60;
var documentElement = event.srcElement;
oPopup.show(x_coord, y_coord, width, height, documentElement);
}
crmForm.attachEvent('onmouseover', My_OrgName_showRatingPopup);
}
No comments:
Post a Comment