Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPField.Required Property

Gets or sets a Boolean value that determines whether users must enter a value for the field on New and Edit forms.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

[ClientCallableAttribute]
public bool Required { get; set; }

Property Value

Type: System.Boolean
true if the field requires values; otherwise, false.

ExceptionCondition
NotSupportedException

The list that the field belongs to is an external list.

Show:
© 2015 Microsoft