Table of Contents

Class FormValidationRuleProperties

Namespace
Kentico.Forms.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Base class for form builder field validation rule properties.

public abstract class FormValidationRuleProperties
Inheritance
object
FormValidationRuleProperties
Extension Methods

Constructors

FormValidationRuleProperties()

protected FormValidationRuleProperties()

Fields

ERROR_MESSAGE_ORDER

Order of the editing component for the ErrorMessage field ensuring the last position within a form.

protected const int ERROR_MESSAGE_ORDER = 99

Field Value

int

Properties

ErrorMessage

Gets or sets the error message to display when validation fails.

[TextInputComponent(Label = "{$kentico.formbuilder.validationrule.errormessage$}", Order = 99, WatermarkText = "{$kentico.formbuilder.validationrule.errormessage.watermarktext$}", Tooltip = "{$kentico.formbuilder.validationrule.errormessage.tooltip$}")]
[MaxLengthValidationRule(240)]
public virtual string ErrorMessage { get; set; }

Property Value

string