Click or drag to resize

DataContextAddFieldValidation Method

Adds a new pattern based validation and option error message to a field.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public void AddFieldValidation(
	string observableFieldReference,
	string validationPattern,
	string errorMessage = null
)
View Source

Parameters

observableFieldReference  String
Observable field reference (from JS view model).
validationPattern  String
Reg-ex based validation pattern.
errorMessage  String  (Optional)
Optional error message to display when pattern fails.
See Also