Skip to content

Field Conditions

The conditions that decide whether a field is shown and validated.

A field carries at most one Condition. It decides whether the editor is asked for the field at all, and an unasked field is not validated. Combine several tests by nesting them inside an and or or condition.
Type Summary
and True when every nested condition is true.
contains True when the named field's value contains a value.
eq True when the named field equals a value.
exists True when the named field has any value.
gt True when the named field is greater than a value.
gte True when the named field is greater than or equal to a value.
in True when the named field matches one of several values.
lt True when the named field is less than a value.
lte True when the named field is less than or equal to a value.
maxitems True when the named list or fieldset holds at most a given number of entries.
mimic True whenever the named field's own condition is true, so one rule can be reused rather than restated.
minitems True when the named list or fieldset holds at least a given number of entries.
or True when any nested condition is true.