SP.Field.required Property
Applies to: SharePoint Foundation 2010
Gets or sets a value that specifies whether the field requires a value.
var value = SP.Field.get_required();
SP.Field.set_required(value);
Property Value
Type: Boolean
Applies To
Exceptions
- NotSupportedException
Value is set to true, and the list is an external list. Error code: -1.