共用方式為


SP.Field.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 the field.

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

Property Value

Type: String

Applies To

SP.Field Class

Exceptions

  • SPException
    FieldTypeKind is not one of the following: Text, Number, Integer, Currency, Choice, or DateTime. Error code: -2146232832.

Remarks

Its length must be equal to or less than 1024.

See Also

Reference

SP.Field Methods

SP.Field Properties

SP Namespace