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 ReadOnly Property ValidationEcmaScript As String
Dim instance As SPField
Dim value As String

value = instance.ValidationEcmaScript
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.

See Also


SPField Class

SPField Members

Microsoft.SharePoint Namespace