Share via


SP.Field.group property (sp.js)

Gets or sets a value that specifies the field group.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.Field.get_group ()
var value = SP.Field.set_group ()

Return value

Type: String

A string that specifies the group of site columns. Default column groups that are used in Microsoft SharePoint Foundation include the following:

  • Base Columns

  • Core Contact and Calendar Columns

  • Core Document Columns

  • Core Task and Issue Columns

  • Custom Columns

  • Extended Columns

  • _Hidden

  • Picture Columns

Remarks

It must not be null. It must not be empty. Its length must be equal to or less than 128.

REST resource endpoint

See Field resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/fields(fieldid)/group

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/fields(fieldid)/group

GET syntax

GET http://<sitecollection>/<site>/_api/web/lists(listid)/fields(fieldid)/group