Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ValidationEcmaScript property
Collapse the table of content
Expand the table of content

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.

© 2015 Microsoft