开发者

Hide inherited fields in new content types

I am trying to hide PercentComplete (% Complete) field in my custom content type that inherits from Workflow Task content type. And I am trying to do this with a feature. I am using the开发者_如何学Python ID of PercentComplete field in FieldRefs element and setting ShowInDisplayForm to FALSE to no avail.

Do I have to use a feature receiver and do it programmatically?


Did you try to set Hidden=TRUE in the FieldRef (see full reference here: http://msdn.microsoft.com/en-us/library/aa543225.aspx) ShowInDisplayForm adds the percentage field, but hides it in (only) one of the forms.


I do not think what you are trying to do is possible. I believe you can only set properties for the field on the list or @ the Site Collect (RootWeb) Fields list.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜