Form object
TOC
Collapse the table of content
Expand the table of content

SP.Form object (sp.js)

SharePoint 2013

A form provides a display and editing interface for a single list item.

Last modified: March 09, 2015

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

In this article
Members
Remarks
REST resource endpoint

var object = new SP.Form()

The Form object has the following members.

Constructor

The Form object has the following constructor.

Constructor

Description

Form

Initializes a new instance of the SP.Form object.

Methods

The Form object has the following methods.

Method

Description

initPropertiesFromJson

Properties

The Form object has the following properties.

Property

Description

formType

Gets a value that specifies the page type of the list form.

id

Gets a value that specifies the identifier of the list form.

serverRelativeUrl

Gets a value that specifies the server-relative URL of the list form.

A form has one associated Web Part instance (the form Web Part). Because a Web Part instance exists in the context of a page, a form always has an associated page. A form has a collection of settings flags defined.

Endpoint URI structure

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

HTTP requests

This resource supports the following HTTP commands:

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/forms(formid)
Show:
© 2016 Microsoft