SP.ViewFieldCollection.moveFieldTo Method (sp.js)
Moves the field with the specified field internal name to the specified position in the collection.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.ViewFieldCollection.moveFieldTo()
Return value
Undefined
Remarks
It must not be null. Its value must be equal to or greater than 0.
REST resource endpoint
See ViewFieldCollection resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/lists(listid)/Views(viewid)/ViewFields/moveViewFieldTo()
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/lists(listid)/Views(viewid)/ViewFields/moveFieldTo(,)
Resource parameters
field
index
Parameters
field
index