<validate-field> validate a field in a form

name
validate-field
xml namespace
http://moyaproject.com/forms

Define validation code for a field in a form.

Example

<validate-field field="price">
    <fail if="value lte 0>
        Price must be greater than 0.00.
    </fail>
</validate-field>
attributes
name purpose type required? default choices
field Field name text Yes
inherited attributes
name purpose type required? default choices
if Conditional expression expression No yes