CodeCharge Studio

Validation Rule Property

Specify an expression that will be used to check the validity of the data entered in the control.

Applies to

Checkbox, Checkbox List, Hidden, List Box, Radio Button, Text Area, Text Box

Description

This property presents you with the opportunity to enter a programming language specific condition that will be used to determine the validity of the submitted value. If the requirement is not satisfied the error message from Validation Text property is shown.

Important: If there is no text entered into the Validation Text property the message is not shown and the following warning message appears in the Messages Window: "Warning: TextBox DateFiled: The Validation Text property is empty." The property value depends on the programming language of the project.

Example

For instance, if using ASP and you have a control that submits date values, you can enter a simple condition to ensure that the date is later than the current date i.e. FieldName is the name of the control being validated.
FieldName.Value >  Date()

See Also

Validation Text property


On-line, printable versions and updates