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.
One thought on “Dynamics 365 Updating Readonly Field – setSubmitMode()”