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 :
// different functions or events in the form.
var oPopup = window.createPopup();
var oPopupBody = oPopup.document.body;
oPopupBody.style.backgroundColor = 'yellow';
oPopupBody.style.fontFamily = 'Tahoma';
oPopupBody.style.border = '2px solid black';
//Create the function that will be attached to the field mouseover event.
function My_OrgName_showRatingPopup ()
{
// Set the message HTML.
oPopupBody.innerHTML = "
Note :Sent Button Click :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. |
// Set the location and size of the pop-up message.
// The x and y coordinates are relative to the form element.
var x_coord = -50;
var y_coord = -70;
var width =230;
var height = 60;
// Associate the pop-up message with the element where the event // occurred.
var documentElement = event.srcElement;
// Show the pop-up message.
oPopup.show(x_coord, y_coord, width, height, documentElement);
}
// Attach the onmouseover event to the field and the function.
// It is important that this be done in script after the function is defined.
crmForm.attachEvent('onmouseover', My_OrgName_showRatingPopup);
}
No comments:
Post a Comment