Expand Minimize

Define attribute 'Inherits' to FALSE in ContentType if Custom Forms are used

A content type should not have attribute 'Inherits' set to 'TRUE' if custom forms are used. Set Inherits to 'FALSE' or remove the custom form from a content type.

CheckId SPC015212
TypeName DefineInheritsToFalseInContentTypeWithForms
Severity CriticalWarning
Type ContentType

A ContentType should not set 'Inherits' to TRUE when custom forms are used. See sample below:

<ContentType ID="0x0101"
         <FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">

To suppress this violation in XML SharePoint code add the following comment right before the XML tag which causes the rule violation. Learn more about SuppressMessage here.

<!-- "SuppressMessage":{"rule":"SPC015212:DefineInheritsToFalseInContentTypeWithForms","justification":"Provide reason for suppression here"} -->
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.