SP.ListItemCreationInformation.leafName property (sp.js)

Gets or sets a value that specifies the name of the new list item. It must be the name of the file if the parent list of the list item is a document library.

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

var value = SP.ListItemCreationInformation.get_leafName ()
var value = SP.ListItemCreationInformation.set_leafName ()

Return value

Type: String

Remarks

Its length must be equal to or less than 128. It must not contain the following characters: \x00-\x1FF, \x22, \x23, \x25, \x26, \x2A, \x3A, \x3C, x3E, \x3F, \x5C and \x7B-\x9F.