Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling Modal Dialogs for List Forms in SharePoint 2010

Tags:

sharepoint

Is there a way to set the list setting "Launch forms in dialog" to 'No' via the List definition?

I have a custom list definition that I create in visual studio, i'd like to set the setting once so that i can easily deploy and create my list without manually setting this option.

like image 818
Chazza Avatar asked May 25 '11 13:05

Chazza


2 Answers

Andy had the right attribute, just the wrong value. It should be:

NavigateForFormsPages="TRUE"

This will disable launching of forms in a dialog.

like image 81
lyoung Avatar answered Nov 12 '22 02:11

lyoung


In the tag for your definition you need to add the attribute:

NavigateForFormsPages="FALSE"

This doesn't appear to be in the online CAML documentation.

FYI, there also seems to be a property for choosing what application should open the document:

BrowserFileHandling="permissive"

I found this by saving a list as a template, downloading the STP file, changing the extension to a .cab, extracting and reviewing the manifest file.

The relevant line was:

<List Name="{AFB613BE-5A3E-47FB-989C-FD4FB060AEE8}" Title="test" Description="" Direction="0" BaseType="0" FeatureId="{00BFEA71-DE22-43B2-A848-C05709900100}" ServerTemplate="100" Url="Lists/test" FolderCreation="FALSE" NavigateForFormsPages="TRUE" BrowserFileHandling="permissive" Version="1">
like image 5
Andy Burns Avatar answered Nov 12 '22 02:11

Andy Burns