Share via


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)

Syntax

'Declaration
Public ReadOnly Property ValidationEcmaScript As String
    Get
'Usage
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.

Remarks

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

See also

Reference

SPField class

SPField members

Microsoft.SharePoint namespace