Friday, 18 December 2009
Microsoft CRM 4.0 & Windows Server 2008 R2 Known Issue
http://microsoft-crm.spaces.live.com/Blog/cns!A2586C4AB938C065!993.entry
If you get this error, ensure update rollups are installed

If you get this error, ensure update rollups are installed
Fire an event on any CRM field change
The following code shows how you can attach any function to all of the fields on a CRM form for execution when any of them change. It's based on Michael Höhne's code to find all fields on a form:
FieldChange = function () {
alert("Change!");
}
for (var index in crmForm.all) {
var control = crmForm.all[index];
if (control.req && (control.Disabled != null)) {
control.attachEvent("onchange", FieldChange);
}
}
FieldChange = function () {
alert("Change!");
}
for (var index in crmForm.all) {
var control = crmForm.all[index];
if (control.req && (control.Disabled != null)) {
control.attachEvent("onchange", FieldChange);
}
}
