After more research I found that we can completely override the phone number click event handler:
Mscrm.ReadFormUtilities.handlePhoneNumberClick = function (){return;};
The nice thing is that now we could add our own phone number click event handler to do whatever we want.
The original handlePhoneNumberClick event handler calls Mscrm.ReadFormUtilities.openPhoneClient which will first call openPhoneWindow and later jumps to the phone activity quick edit window if the activity Container control was added to the form.
My next approach will be to make the handlePhoneNumberClick event set the field to edit mode.
Mscrm.ReadFormUtilities.handlePhoneNumberClick = function (){return;};
The nice thing is that now we could add our own phone number click event handler to do whatever we want.
The original handlePhoneNumberClick event handler calls Mscrm.ReadFormUtilities.openPhoneClient which will first call openPhoneWindow and later jumps to the phone activity quick edit window if the activity Container control was added to the form.
My next approach will be to make the handlePhoneNumberClick event set the field to edit mode.
Comments
Post a Comment