sharepoint online – ReadOnlyField Vs ReadOnlyEnforced when creating Site Columns


When creating a new site column inside Sharepoint Online, we have 2 options to set: ReadOnlyField and ReadOnlyEnforced.

So, what are the differences between these 2 settings?

As far as, I know ReadOnlyField means below points:

  • It can not be edited using the new, edit and quick edit forms.

  • It can be updated inside our code using CSOM (for example if we have a remote event receiver we can update the ReadOnlyField inside the code).