VDaemon PHP Library | VDaemon Extension | Table of Contents

VDaemon Reference
<VLGROUP> Custom Tag

In some instances, entries in several different formats might be valid. For example, if you are prompting for a phone number, you might allow users to enter a local number, a long-distance number, or an international number. This situation arises primarily when checking for specific patterns of numbers or characters. To perform this type of test — a logical OR — you use the vlgroup validator and specify multiple validators within it.

Note that validators which are contained inside vlgroup validator are not required to have name and errmsg attributes. If such attributes are defined, they will be ignored.

vlgroup tag can contain only vlvalidators tags, otherwise error will happen.

Syntax
<vlgroup
      name="validatorName"
      errmsg="errorMessage"
      clientvalidate="true"|"false">

   <vlvalidator ...>
   <vlvalidator ...>
   ...
</vlgroup>
Name Attribute

Use the Name attribute to set the unique identifier name for the VDaemon vlgroup custom tag.

ErrMsg Attribute

Use the ErrMsg attribute to specify the text to display by the vlsummary custom tag when validation fails.

ClientValidate Attribute

Determines if client-side validation for current validator will be performed. Default value is true.