SP.ViewFieldCollection.remove Method (sp.js)

Removes the field with the specified field internal name from the collection.

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

SP.ViewFieldCollection.remove()

Parameters

  • strField
    Type: String

    Specifies the field internal name.

Return value

Undefined

Remarks

It must not be null.

REST resource endpoint

See ViewFieldCollection resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/Views(viewid)/ViewFields/removeViewField(strField)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/Views(viewid)/ViewFields/remove(strField)

Resource parameters

  • strField