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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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.

© 2014 Microsoft