开发者

Showing fields as readonly in Edit Form of List Item in SharePoint

开发者 https://www.devze.com 2022-12-27 10:37 出处:网络
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 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开发者_JAVA百科 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..


You must define your own RenderingTemplate that will use your own, custom ListFieldIterator. (an excellent article)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号