SP.FieldCollection.getByTitle Method (sp.js)
Returns the first field object in the collection based on the title of the specified field.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.FieldCollection.getByTitle()
Parameters
title
Type: StringA title of the SP.Field object that represents the field.
It must not be null. It must not be empty.
Return value
Type: SP.Field
REST resource endpoint
See FieldCollection resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/lists(listid)/fields/getByTitle(title)
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/lists(listid)/fields/getByTitle(title)
Resource parameters
- title