Share via


SP.FormCollection.getByPageType(formType) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Applies To
Remarks

Returns the list form with the specified page type.

var value = SP.FormCollection.getByPageType(formType);

Parameters

  • formType
    Specifies the page type of the list form to return.

Type: SP.PageType

Return Value

Type: SP.Form

Applies To

SP.FormCollection Class

Remarks

If there is more than one list form with the specified page type, the server must return one list form. If there is no list form with the specified page type, the server must return null.

See Also

Reference

SP.FormCollection Methods

SP.FormCollection Properties

SP Namespace