Dynamics 365 Updating Readonly Field – setSubmitMode()

To update readonly fields with Javascript simply use setSubmitMode() after setValue() function.

  • always: The data is always sent with a save.
  • never: The data is never sent with a save. When this value is used, the column(s) in the form for this column cannot be edited.
  • dirty: Default behavior. The data is sent with the save when it has changed.
UpdateReadonlyField: function (context) {
var formContext = executionContext.getFormContext();

One thought on “Dynamics 365 Updating Readonly Field – setSubmitMode()

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s