Class FieldValidationService
- Namespace
- Dynamicweb.Forms.Rules
- Assembly
- Dynamicweb.Forms.dll
Contains the helper methods for work with rules and conditions.
public class FieldValidationService
- Inheritance
-
FieldValidationService
- Inherited Members
Methods
GetConditionDataType(ConditionType, bool)
Returns the data type related to the condition type.
public static Type GetConditionDataType(ConditionType conditionType, bool isDateField)
Parameters
conditionTypeConditionTypeThe condition type.
isDateFieldboolDefines is the field type is date.
Returns
- Type
The type of the data.
GetSuitableConditionTypes(Field)
Returns the suitable condition types for the field.
public static IEnumerable<ConditionType> GetSuitableConditionTypes(Field field)
Parameters
fieldFieldThe field.
Returns
- IEnumerable<ConditionType>
A collection of condition types.