Tuesday, June 29, 2010

crmForm.SetFieldReqLevel throws an error when you try to change the label at runtime and make that field mandatory.

Use the following:

crmForm.all.new_fieldname_c.firstChild.innerText = "New Caption";
crmForm.SetFieldReqLevel("new_fieldname", 2)