Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'd like tu turn off attachments in my custom list definitions. In order to do that, I specified DisableAttachments="TRUE" whenever it was possible: in list definitions Schema.xml and in Elements.xml, but I still see the Attach file button on the ribbon and still can attach files. What am I missing here?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You can use DisableAttachments="TRUE" on the top of Schema.xml and you should be good to go:

For e.g.

<List Title="Test List" Description="Test desc" Direction="0" BaseType="0" Url="Lists/TestList" DisableAttachments="TRUE" FolderCreation="FALSE" Version="8" Type="100" xmlns="http://schemas.microsoft.com/sharepoint/">
share|improve this answer

Is your list being created by a list instance deployed alongside the list definition?

If so, the list instance can override the definition properties.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.