SP.Field.setShowInEditForm Method (sp.js)

Sets the value of the ShowInEditForm property for this field.

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

SP.Field.setShowInEditForm(value)

Parameters

  • value
    Type: Boolean

    A Boolean value that indicates whether this field is shown in the edit form.

REST resource endpoint

See Field resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/fields(fieldid)/setShowInEditForm(value)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/fields(fieldid)/setShowInEditForm(value)

Resource parameters

  • value