RegisterFormValidationRuleAttribute Constructor |
Namespace: Kentico.Forms.Web.MvcAssembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntaxpublic RegisterFormValidationRuleAttribute(
string identifier,
Type validationRuleType,
string name
)
Parameters
- identifier
- Type: SystemString
Unique identifier of the form component validation rule. - validationRuleType
- Type: SystemType
Type of the form component validation rule. The validation rule must inherit the ValidationRule class. - name
- Type: SystemString
Name of the form component validation rule.
Remarks
Make sure to provide a unique identifier for the form component validation rule from the start.
This identifier is used within the form configuration of components and any further change can lead to incorrect configuration load.
Consider specifying identifier in format 'CompanyName.ModuleName.ValidationRule', e.g. 'Kentico.Content.RegularExpressionValidationRule'.
See Also