Share via


SP.FieldText.maxLength Property

Applies to: SharePoint Foundation 2010

In this article
Property Value
Applies To
Remarks

Gets or sets a value that specifies the maximum number of characters allowed in the value of the field.

var value = SP.FieldText.get_maxLength(); 
SP.FieldText.set_maxLength(value);

Property Value

Type: Int32

Applies To

SP.FieldText Class

Exceptions

  • [Microsoft.SharePoint.SPException]
    The server does not allow properties of the field to be changed. Error code: -2146232832.

Remarks

Its value must be equal to or greater than 1. Its value must be equal to or less than 255.

See Also

Reference

SP.FieldText Methods

SP.FieldText Properties

SP Namespace