Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPField.ValidationEcmaScript property

Gets an ECMAScript function that corresponds to the field’s validation formula.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public string ValidationEcmaScript { get; }

Property value

Type: System.String
Returns a string containing the ECMAScript function.

If no validation formula is set, the ValidationEcmaScript property gets a default script that returns true.

Show:
© 2015 Microsoft