SP.FormCollection object

Represents a collection of SP.Form objects for a list.

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

var object = new SP.FormCollection()

Members

The FormCollection object has the following members.

Constructor

The FormCollection object has the following constructor.

Constructor

Description

FormCollection

Initializes a new instance of the SP.FormCollection object.

Methods

The FormCollection object has the following methods.

Method

Description

getById

getByPageType

Returns the list form with the specified page type.

itemAt

Gets the list form at the specified index in the collection.

Properties

The FormCollection object has the following properties.

Property

Description

childItemType

item

Gets the list form at the specified index in the collection.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/forms

HTTP requests

This resource supports the following HTTP commands:

GET syntax

GET http://<sitecollection>/<site>/_api/web/lists(listid)/forms

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/forms