I have 4 date columns in a list that need to be read only after the record is created. Does any one have code to do this?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
I've used the following approach. You can define your own column based on DateTime column and define a custom field control. There you can use the control derived from the original control for the DateTime field and set the control mode to Display:
|
||||
|
|
|
You can add event receiver: OnItemUpdating end cancel properties updating.
|
||||
|
|
|
Adding to what BioGeneZ said, you can hide the the field to show up in editform, so users will never see the field to update
|
|||||
|