/// public string DefaultErrorMessage { get; set; } public SitecoreRequiredField(string fieldName) { // The path is the GUID of the item that holds the validation messages this.path = ValidationErrorMsg.GetPath(); // The fieldname is the name of the Sitecore field on the "path" item that relates // to this property this.fieldName = fieldName; }
public SitecoreRegEx(string fieldName, string RegExpattern) { this.fieldName = fieldName; this.path = ValidationErrorMsg.GetPath(); this.pattern = RegExpattern; }