.. _field: ===== Field ===== Field config and error checks. .. code-block:: typoscript Example Code: validators { DefaultValidator { model = DefaultValidator config { fields { participants { errorChecks { itemsMax { model = ItemsMax itemsMax = 5 } itemsMin { model = ItemsMin itemsMin = 1 } } fieldArray = True fields { firstName.errorChecks { required { model = Required } } lastName.errorChecks { required { model = Required } } } } } } } } **Properties** .. list-table:: :align: left :width: 100% :widths: 20 80 :header-rows: 0 :stub-columns: 0 * - **errorChecks** - List containing the :ref:`error checks ` for this field. * - - * - *Mandatory* - False * - *Data Type* - Array * - *Default* - Empty Array .. list-table:: :align: left :width: 100% :widths: 20 80 :header-rows: 0 :stub-columns: 0 * - **fieldArray** - Set true if this field is an array of sub fields. * - - * - *Mandatory* - False * - *Data Type* - Boolean * - *Default* - False .. list-table:: :align: left :width: 100% :widths: 20 80 :header-rows: 0 :stub-columns: 0 * - **fields** - List containing the :ref:`fields ` and :ref:`error checks ` for subfields. * - - * - *Mandatory* - Only if fieldArray is True. * - *Data Type* - Array * - *Default* - Empty Array