.. _containsone: =========== ContainsOne =========== Checks if a field contains at least one of the configured values .. code-block:: typoscript Example Code: validators { DefaultValidator { model = DefaultValidator config { fields { privacy_policy.errorChecks { containsOne { model = ContainsOne values = Yes,Ja } } } } } } **Properties** .. list-table:: :align: left :width: 100% :widths: 20 80 :header-rows: 0 :stub-columns: 0 * - **values** - Comma separated list of values of which one must be the value of a given field * - - * - *Mandatory* - False * - *Data Type* - String * - *Default* - Empty String .. toctree:: :maxdepth: 2 :hidden: