Archive for May, 2010

Submit A Read-only or Disabled Form Field – Microsoft Dynamic CRM

Monday, May 17th, 2010

Disabling or setting a form field to read-only will cause CRM to ignore any changes to that field on save. For any reason, a form field maybe disabled or set to read-only to prevent the user change the data manually. In some cases, we may need to set the value via form Javascript.

In this case, CRM Form will not save/submit when you make any changes to these disabled fields via form script. Put the following line of script on your form onload event for every disabled/read-only field, to force CRM to submit any changes made to the field.

crmForm.all.NEW_CUSTOMFIELDNAME.ForceSubmit = true;