Web Forms for Marketers 2.3 for Sitecore CMS 6.5-6.6 Reference Guide
Sitecore® is a registered trademark. All other brand and product names are the property of their respective holders. The contents of
this document are the property of Sitecore. Copyright © 2001-2014 Sitecore. All rights reserved.
Page 19 of 84
A validator item contains the following fields:
The full name of the class which handles the validation.
The name of the assembly that contains the class.
The text for the error message displayed in a ValidationSummary
control when validation fails.
The text displayed in the validation control when validation fails.
The display behavior of the error message in a validation control:
the validation message is never displayed inline.
space for the validation message is allocated in the
space for the validation message is dynamically
added to the page if validation fails.
Enable Script Validation
Whether or not client-side validation is enabled.
The additional parameters for the validation control.
Indicates the place where the validation control is added.
Sets the regular expression assigned to be the validation criteria.
(Only for validation items that use the Regular Expression
How to Implement “Required” Checkbox Field
The Checkbox field validator has been added in Web Forms for Marketers 2.3 rev.140617. If you deal
with the version earlier than that, you may want to learn how to implement the Checkbox field validator
In the Web Forms for Marketers module, the C
heckbox field does not support the “required” validation
rule. To make the Checkbox field “required”, follow one of the methods below.
Use the CheckboxList field
1. Add the Checkbox List field to a form.
2. Add only one item to the list.
3. Mark this Checkbox List as required.
Create a custom validator for the CheckboxList field
1. Create a class that is inherited from the
class. See a code sample:
class CheckboxValidation : BaseValidator
protected CheckBox ctrToValidate;
protected CheckBox CheckBoxToValidate
if (ctrToValidate == null)