Fork me on GitHub
<< back to Core Developers Guide Edit on GitHub

conditionalvisitor validator

Description

The ConditionalVisitorFieldValidator will forward validation to the VisitorFieldValidator only if the expression will evaluate to true.

Parameters

Examples

<field name="colleaguePosition">
    <field-validator type="conditionalvisitor">
        <param name="expression">reason == 'colleague' and colleaguePositionID == 'OTHER'</param>
        <message>You must select reason Colleague and position Other</message>
    </field-validator>
</field>