共用方式為


SP.Field.validationFormula Property

Applies to: SharePoint Foundation 2010

Gets or sets a value that specifies the data validation criteria for the value of the field.

var value = SP.Field.get_validationFormula(); 
SP.Field.set_validationFormula(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.

See Also

Reference

SP.Field Methods

SP.Field Properties

SP Namespace