共用方式為


SP.List.validationMessage Property

Applies to: SharePoint Foundation 2010

In this article
Property Value
Applies To
Remarks

Gets or sets a value that specifies the error message returned when data validation fails for a list item.

var value = SP.List.get_validationMessage(); 
SP.List.set_validationMessage(value);

Property Value

Type: String

Applies To

SP.List Class

Remarks

It must not be null. Its length must be equal to or less than 1024.

See Also

Reference

SP.List Methods

SP.List Properties

SP Namespace