SPField.Required Property
SharePoint 2010
Gets or sets a Boolean value that determines whether users must enter a value for the field on New and Edit forms.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
| Exception | Condition |
|---|---|
| NotSupportedException | The list that the field belongs to is an external list. |