Showing fields as readonly in Edit Form of List Item in SharePoint
-
30-09-2019 - |
Question
I have a list which has 5 columns in it. Some of these fields help the user fill in the data but I don't want the user to modify these fields.
I have tried changing the field to readonly but that ends up hiding the field completely from the form. Is there a way to get the field to render out to the form as just text?
Maybe I need to use javascript to disable the fields programmatically - would prefer not to go down that route though..
Solution
You must define your own RenderingTemplate that will use your own, custom ListFieldIterator. (an excellent article)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow