SP.FieldCollection.getByTitle(displayName) Method
Applies to: SharePoint Foundation 2010
Returns the first field object in the collection based on the title of the specified field.
var value = SP.FieldCollection.getByTitle(displayName);
Parameters
displayName
A title of the SP.Field Class object that represents the field.It must not be null. It must not be empty.
Type: String
Return Value
Type: SP.Field
Applies To
Exceptions
- ArgumentException
The field with the specified name does not exist in the collection at the given scope. Error code: -2147024809.