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

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;

One Response to “Submit A Read-only or Disabled Form Field – Microsoft Dynamic CRM”

  1. Thabiso Motloung Says:

    Thank you very much this worked perfectly.

Leave a Reply

*