This topic has not yet been rated - Rate this topic

SPList.Forms Property

Gets a collection of form objects that represent the forms that are used in creating, editing, or displaying items in the list.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
public SPFormCollection Forms { get; }

Property Value

Type: Microsoft.SharePoint.SPFormCollection
A collection of SPForm objects that represent the forms.

The Forms property only returns forms that are part of the original list schema and does not return custom forms, even if they are created in a Web page editor that is compatible with SharePoint Foundation.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
The remark is not true
I created custom forms using SPD 2010 and They all show when I inspect the Forms collecton of my SPList object. I have a total of six forms in there, three that come with the list definition and the other three that SPD added.