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.
精彩评论